From: Brian Candler Date: 2008-12-15T02:26:04+09:00 Subject: Re: singleton methods vs. meta instance methods David A. Black wrote: > My problem > with what we're seeing is that I think the "false" flag should mean > "defined in exactly this class" -- and, in fact, that's what I thought > it did mean. Apparently it (consistently :-) does not mean that, when > the receiver is a singleton class. Oh OK, that's the point Daniel was making too. I guess instance_methods could take a tristate option: 1. instance methods of just this (singleton) class 2. instance methods of this (singleton) class plus the actual Class it derives from 3. instance methods of the singleton class, the Class and its ancestors But as you say, having (true) and (false) is bad enough already :-) Currently we have obj.singleton_methods for 1 and klass.instance_methods for (false=>2, true=>3) -- Posted via http://www.ruby-forum.com/.