From: "David A. Black" Date: 2008-04-10T06:19:40+09:00 Subject: Re: Question of self Hi -- On Thu, 10 Apr 2008, Daniel Waite wrote: > Oops. Forgot to add that I logged the output of... > > ">>> Self is: #{ self } -> #{ self.class }" > > ... and got... > >>>> Self is: # -> Class > > I recognize the # bit as a singleton, or metaclass, but is > that also the instance? I was under the impression there was only one > metaclass per object. There is. I'm not sure what you mean by the instance. You haven't instantiated ActiveRecord::Base in your example, so there aren't any instances of it around, and in any case they'd be unrelated to the singleton class of their class. I'm not sure what's leading you to interpret it that way, so I'm not sure I'm explaining it adequately. David -- Rails training from David A. Black and Ruby Power and Light: ADVANCING WITH RAILS April 14-17 New York City INTRO TO RAILS June 9-12 Berlin ADVANCING WITH RAILS June 16-19 Berlin See http://www.rubypal.com for details and updates!