Module: YTLJit::VM::TypeCodeGen::RangeTypeBoxedCodeGen
Instance Attribute Summary
#args, #element_type
Instance Method Summary
collapse
#==, #have_element?, #init, #inspect
Instance Method Details
#copy_type ⇒ Object
389
390
391
392
393
394
395
|
# File 'lib/ytljit/vm_type_gen.rb', line 389
def copy_type
dro = self.class.from_ruby_class(@ruby_type)
dro = dro.to_box
dro.element_type = @element_type
dro.args = @args
dro
end
|
382
383
384
385
386
387
|
# File 'lib/ytljit/vm_type_gen.rb', line 382
def instance
ni = self.dup
ni.instance_eval { extend RangeTypeBoxedCodeGen }
ni.init
ni
end
|