Ruby we might Miss

Posted on August 9, 2011

0


This is the continuation of the series I started.
The topic for this post :

Kernel

——————————————————————————————————————
• Kernel#Array tries to coerce its argument into an array:
Array([1,2,3]) # => [1, 2, 3]
Array(1..3) # => [1, 2, 3]
Array(1) # => [1]

——————————————————————————————————————

Advertisements
Posted in: Ruby