On 2006.01.29 01:13, James Edward Gray II wrote: > On Jan 28, 2006, at 3:52 AM, Eero Saynatkari wrote: > > >On 2006.01.28 18:39, Alex Combas wrote: > >>Something like this, but better. > >> > >>`Foo.new.methods - Object.methods` > > > >As a workaround, you can do this: > > > > class << foo; self; end.instance_methods false > > Do we really need a singleton class for that? I prefer: > > self.class.instance_methods(false) Yep, otherwise singleton methods will not be included. > James Edward Gray II E