Ruby Forum Ruby-core > Instance methods of a class's singleton class...

Posted by David A. Black (Guest)
on 14.08.2008 03:39
(Received via mailing list)
Hi --

I'm wondering why this code doesn't produce an empty array:

>> class << Class.new; instance_methods(false); end
=> [:allocate, :new, :superclass]

This is 1.9 (recent trunk).


David