November 2001
Intermediate to advanced
218 pages
6h 22m
English
In Ruby, methods can be defined that are
associated with specific objects only. Such methods are called
singleton methods. Singleton methods are defined using
def statements while specifying a receiver.
Defines a singleton method associated with a specific object
specified by a receiver. The receiver may
be a constant (literal) or an expression enclosed in parentheses.
Read now
Unlock full access