Class: YTLJit::OpImmidiate
Direct Known Subclasses
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(value) ⇒ OpImmidiate
constructor
A new instance of OpImmidiate.
- #to_as ⇒ Object
Methods inherited from Operand
Constructor Details
#initialize(value) ⇒ OpImmidiate
Returns a new instance of OpImmidiate.
15 16 17 |
# File 'lib/ytljit/instruction.rb', line 15 def initialize(value) @value = value end |
Instance Attribute Details
#value ⇒ Object (readonly)
Returns the value of attribute value.
23 24 25 |
# File 'lib/ytljit/instruction.rb', line 23 def value @value end |
Instance Method Details
#to_as ⇒ Object
19 20 21 |
# File 'lib/ytljit/instruction.rb', line 19 def to_as "$0x#{value.to_s(16)}" end |