+ 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
1 Answer
+ 6
No Name
You'll find your answers here đ
đžcoerce
https://apidock.com/ruby/Numeric/coerce
đžpack
https://apidock.com/ruby/Array/pack