> -----Original Message----- > From: Andy Wardley [mailto:[EMAIL PROTECTED]]On Behalf Of Andy Wardley > > Dan Sugalski wrote much sense, including these gems: > > *) Method: Some sort of action that an object can do. Methods are > > global and public--only one foo method for an object. Methods may be > > inherited from parent classes, or redefined in a particular class. > > Redefined methods hide parent class methods of the same name > > What about redefining methods for a particular object instance? > > It's something that Ruby does and can be extremely useful.
Behind the scenes ruby creates a new (anonymous) subclass, which contains the new method. -- jonathan