
Eloquent Ruby (Addison-Wesley Professional Ruby Series)

Ruby sees all data structures and values—from simple scalar (atomic) values like integers and strings, to complex data structures like arrays—as objects. Every object is capable of understanding a certain set of messages. Each message that an object understands corresponds directly to a method—a named, executable routine whose execution the object
... See moreJoe Leo • The Well-Grounded Rubyist
Writing a Ruby program can involve thinking about how you might map elements of a domain (even a modest one-entity domain like “a ticket to an event”) onto a system of objects so that those objects can store information and perform tasks.
Joe Leo • The Well-Grounded Rubyist
Jack of all trades.
David Thomas • The Pragmatic Programmer: From Journeyman to Master


The most natural thing to do with Ruby is to design classes and modules and instantiate your classes. But sometimes you just want to write a quick script—a few commands stuffed in a file and executed. It’s sometimes more convenient to write method definitions at the top level of your script and then call them on top-level objects than to wrap every
... See more