[MacRuby-devel] [MacRuby] #563: Retrieving the singleton class of a class seems to return Class.
MacRuby
ruby-noreply at macosforge.org
Tue Jan 19 13:19:02 PST 2010
#563: Retrieving the singleton class of a class seems to return Class.
-------------------------------------+--------------------------------------
Reporter: eloy.de.enige@… | Owner: lsansonetti@…
Type: defect | Status: new
Priority: blocker | Milestone:
Component: MacRuby | Keywords: mocha
-------------------------------------+--------------------------------------
For example:
{{{
% cat t.rb
class A
def self.singleton_class
(class << self; self; end)
end
end
p A.singleton_class
% ruby19 t.rb
#<Class:A>
% macruby t.rb
Class
}}}
--
Ticket URL: <http://www.macruby.org/trac/ticket/563>
MacRuby <http://macruby.org/>
More information about the MacRuby-devel
mailing list