First Ruby Program: Ruby Study Notes - Best Ruby Guide, Ruby Tutorial - 0 views
-
Press the F8 key to open an output window
- ...13 more annotations...
-
a. Parentheses are usually optional with a method call. These calls are all valid:foobarfoobar()foobar(a, b, c)foobar a, b, c
-
Some methods such as puts and gets are available everywhere and don't need to be associated with a specific object.
-
When you run a Ruby application, an object called main of class Object is automatically created. This object provides access to the Kernel methods.