
Working With Unix Processes




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 moreJoe Leo • The Well-Grounded Rubyist
The reason for having these two methods is that you need one of them to be a class method and the other to be an instance method. If you think about it, new has to be a class method, because when you want to create an object, the object you want doesn’t exist yet. You can’t say die.new, for example, because die doesn’t exist yet. And initialize has
... See more