
Working With Unix Processes

Putting the "You" in CPU
cpu.land
That leaves the puts and gets methods to explain. Where are their objects? In English, you can sometimes leave out the noun; for example, if a villain yells “Die!” the implicit noun is whomever they’re yelling at. In Ruby, if you say puts "to be or not to be", the implicit object is whatever object you happen to be in. But hang on, you do
... See moreChris Pine • Learn to Program
From our earliest examples onward, we’ve been making bareword-style calls to puts and print, like this one: puts "Hello" puts and print are built-in private instance methods of Kernel—not, like the ones you write, of Object, but of Kernel. The upshot is similar, though (because Object mixes in Kernel): you can call such methods at any tim
... See moreJoe Leo • The Well-Grounded Rubyist
In the next section, we’ll put together several of the pieces we’ve looked at more or less separately: method calls (message sending), objects and their status as instances of classes, and the mixing of modules into classes. All these concepts come together in the process by which an object, upon being sent a message, looks for and finds (or fails
... See more