+ 1

Explain me this code

print 1.5.coerce(2.5).to_a What does coerce do here ?? puts [65,66,67].pack('ccc').downcase here what is pack and ccc doing? Please explain

26th Sep 2020, 5:19 AM
[bool left=True;]
[bool left=True;] - avatar
1 Odpowiedź
+ 6
No Name You'll find your answers here 👇 🔸coerce https://apidock.com/ruby/Numeric/coerce 🔸pack https://apidock.com/ruby/Array/pack
26th Sep 2020, 5:34 AM
Minho
Minho - avatar