singletonclass=class<<test;self;end
對于對象,也是如此:
test=test.new
metaclass=class<<test;self;end
文章轉自莊周夢蝶 ,原文釋出時間 2007-10-31
singletonclass=class<<test;self;end
對于對象,也是如此:
test=test.new
metaclass=class<<test;self;end
文章轉自莊周夢蝶 ,原文釋出時間 2007-10-31