20 lines
303 B
Ruby
20 lines
303 B
Ruby
require_relative "value"
|
|
|
|
module Virtual
|
|
class Reference < Value
|
|
|
|
def initialize clazz = nil
|
|
@clazz = clazz
|
|
end
|
|
attr_accessor :clazz
|
|
|
|
def at_index block , left , right
|
|
block.ldr( self , left , right )
|
|
self
|
|
end
|
|
end
|
|
|
|
class SelfReference < Reference
|
|
end
|
|
end
|