Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

20 lines (16 sloc) 0.421 kB
module Rubinius
class Reflector
def self.new(target)
Rubinius.primitive :reflector_create
raise PrimitiveFailure, "Reflector.new failed"
end
def get(ivar)
Rubinius.primitive :reflector_get
raise PrimitiveFailure, "Reflector#get failed"
end
def set(ivar, name)
Rubinius.primitive :reflector_set
raise TypeError, "'#{name}' is not a ivar name"
end
end
end
Jump to Line
Something went wrong with that request. Please try again.