Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Move __verify_metaclass__ to bootstrap, because bootstrap uses class …

…<< self
  • Loading branch information...
commit 98fd85f6b8481790fa3b7d06efcfba106355be70 1 parent 00256f4
Wilson Bilkovich wilson authored
8 kernel/bootstrap/object.rb
View
@@ -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
7 kernel/core/kernel.rb
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
BIN  runtime/bootstrap.rba
View
Binary file not shown
BIN  runtime/core.rba
View
Binary file not shown
Please sign in to comment.
Something went wrong with that request. Please try again.