Metaprogramming Ruby by Paolo Perrotta

Metaprogramming Ruby by Paolo Perrotta

Author:Paolo Perrotta
Language: eng
Format: epub
Tags: Pragmatic Bookshelf
ISBN: 1-934356-47-6
Publisher: The Pragmatic Bookshelf, LLC (370059)


Eigenclasses

Where you and Bill place the final piece in the object model puzzle.[58]

“Now we’re going to tackle the difficult topic of eigenclasses,” Bill commences. “They are the UFOs of the Ruby world: even if you never see one in person, you can find scattered hints of their existence all over the place. Let’s start our investigation by collecting some evidence.”

The Mystery of Singleton Methods

In the section Method Lookup, you learned how Ruby finds methods by going right into the receiver’s class and then up the class hierarchy. For example:

class MyClass

def my_method; end

end



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.