From: dblack@... Date: 2006-11-28T03:23:50+09:00 Subject: Re: [ ruby-Bugs-6820 ] #ancestors never includes the singleton class (inconsistent) Hi -- On Tue, 28 Nov 2006, Brian Mitchell wrote: > 3) It seems easy enough to create a specific accessor since all > objects (except a few) are subject to this: > > class Object > def singleton_class > class << self; self end > end > end > > Of course, that might seem like a gross abuse to some and a wonderful > tool to others. I've only ever heard the wonderful tool opinion :-) Mostly I think it doesn't exist because of the state of flux of the implementation of per-object behavior, though my recent understanding is that it will remain class-based. David -- David A. Black | dblack@wobblini.net Author of "Ruby for Rails" [1] | Ruby/Rails training & consultancy [3] DABlog (DAB's Weblog) [2] | Co-director, Ruby Central, Inc. [4] [1] http://www.manning.com/black | [3] http://www.rubypowerandlight.com [2] http://dablog.rubypal.com | [4] http://www.rubycentral.org