From: hemant Date: 2010-08-13T04:15:22+09:00 Subject: Re: injecting an instance method into another class' class method Hi, On Thu, Aug 12, 2010 at 11:48 PM, Chuck Remes wrote: > >I'm somewhat familiar with getting the singleton class of a class using the "class << self;self;end" syntax, but I'm not sure what is >happening here: > > class << Foo >  self # what is self here? Foo? Bar? instance of Bar? > end since classes are objects too , for "class << Foo; self; end" self is singleton (or eigenclass) class of the class object. Typically class methods of a class are defined in its singleton class. http://yugui.jp/articles/846 -- Let them talk of their oriental summer climes of everlasting conservatories; give me the privilege of making my own summer with my own coals. http://gnufied.org