Permalink
Browse files

Move __verify_metaclass__ to bootstrap, because bootstrap uses class …

…<< self
  • Loading branch information...
1 parent 00256f4 commit 98fd85f6b8481790fa3b7d06efcfba106355be70 @wilson wilson committed Aug 30, 2007
@@ -91,6 +91,14 @@ def metaclass
class << self;self;end
end
+ # TODO - Improve this check for metaclass support
+ # TODO - Make this private in core
+ def __verify_metaclass__
+ if self.kind_of?(Fixnum) or self.kind_of?(Symbol)
+ raise TypeError, "no virtual class for #{self.class}"
+ end
+ end
+
def extend(*mods)
metaclass.include(*mods)
end
View
@@ -180,13 +180,6 @@ def self.after_loaded
# used.
Object.method_table[:raise] = nil
end
-
- # TODO - Improve this check for metaclass support
- def __verify_metaclass__
- if Fixnum === self or Symbol === self
- raise TypeError, "no virtual class for #{self.class}"
- end
- end
end
Object.include Kernel
View
Binary file not shown.
View
Binary file not shown.

0 comments on commit 98fd85f

Please sign in to comment.