From: Sebastian Hungerecker Date: 2008-09-30T19:28:07+09:00 Subject: Re: extend keyword in class definition ruud grosmann wrote: > Isn't a singleton method a method that applies to the > singleton class of one object? It is a method that is defined on the singleton class of an object, yes. As a singleton class by definition only has one instance that means that a singleton method is a method that can be called on a single object and that object only. > And in this case we're talking about a > class, not an object? A class is an object: >> String.is_a? Class => true >> String.is_a? Object => true >> String.object_id => -605959678 > As such, Forwardable is mixed in, is my first thought. It is mixed in. It's mixed into WriterDecorator's singleton class. > What have I understood wrongly? I'm not sure. Maybe you mistakenly assumed that a class is its own singleton class? HTH, Sebastian -- NP: Depeche Mode - Lilian Jabber: sepp2k@jabber.org ICQ: 205544826