1 class InvalidIndexError < Exception
6 def __find_method__(meth)
8 cm = Rubinius.asm(meth) do |m|
18 def copy_from(other, start, dest)
19 Ruby.primitive :dup_into
20 raise TypeError, "unable to copy into"
24 class << self;self;end
27 # TODO - Improve this check for metaclass support
28 # TODO - Make this private in core
29 def __verify_metaclass__
30 if self.kind_of?(Fixnum) or self.kind_of?(Symbol)
31 raise TypeError, "no virtual class for #{self.class}"
35 def get_instance_variables
36 Ruby.primitive :ivars_get
37 raise PrimitiveFailure, "primitive failed"
40 def get_instance_variable(sym)
41 Ruby.primitive :ivar_get
42 raise PrimitiveFailure, "primitive failed"
45 def set_instance_variable(sym, value)
46 Ruby.primitive :ivar_set
47 raise PrimitiveFailure, "primitive failed"
51 Ruby.primitive :object_become
52 raise PrimitiveFailure, "primitive failed"