Module: YTLJit::VM::TypeCodeGen::RangeTypeCommonCodeGen
- Included in:
- RangeTypeBoxedCodeGen, RangeTypeUnboxedCodeGen
- Defined in:
- lib/ytljit/vm_type_gen.rb
Instance Attribute Summary collapse
-
#args ⇒ Object
Returns the value of attribute args.
-
#element_type ⇒ Object
Returns the value of attribute element_type.
Instance Method Summary collapse
Instance Attribute Details
#args ⇒ Object
Returns the value of attribute args.
369 370 371 |
# File 'lib/ytljit/vm_type_gen.rb', line 369 def args @args end |
#element_type ⇒ Object
Returns the value of attribute element_type.
370 371 372 |
# File 'lib/ytljit/vm_type_gen.rb', line 370 def element_type @element_type end |
Instance Method Details
#==(other) ⇒ Object
380 381 382 383 384 |
# File 'lib/ytljit/vm_type_gen.rb', line 380 def ==(other) self.class == other.class and # @args == other.args and boxed == other.boxed end |
#have_element? ⇒ Boolean
372 373 374 |
# File 'lib/ytljit/vm_type_gen.rb', line 372 def have_element? true end |
#init ⇒ Object
364 365 366 367 |
# File 'lib/ytljit/vm_type_gen.rb', line 364 def init @args = nil @element_type = nil end |
#inspect ⇒ Object
376 377 378 |
# File 'lib/ytljit/vm_type_gen.rb', line 376 def inspect "{ #{boxed ? "BOXED" : "UNBOXED"} #{@ruby_type} (#{@element_type.inspect})}" end |