Rocket Ship Builder

Joined December 2013
In Ruby, you can list all the methods of an object by calling '.methods' method on it rubymonk.com/ via @rubymonk
2
2
Ruby is so much fun to use. Calling 2.even? returns true in Ruby. rubymonk.com/ via @rubymonk
In ruby, calling the method next on the object 1 has it give us the next consecutive value, 2. rubymonk.com/ via @rubymonk
In Ruby there are no primitives. Everything is an object - integers, characters, arrays - everything. rubymonk.com/ via @rubymonk
In Ruby there are no primitives. Everything is an object - integers, characters, arrays - everything. rubymonk.com/ via @rubymonk
Ruby is so concise that deleting all the even elements from an array takes a single line of code. rubymonk.com/ via @rubymonk
Looking up a Ruby array with an index of -1, will give you the last element in that array rubymonk.com/ via @rubymonk
In Ruby every other object like say 1, 0, "" are all evaluated to be true. rubymonk.com/ via @rubymonk