Class: Senko::Instruction
- Inherits:
-
Struct
- Object
- Struct
- Senko::Instruction
- Defined in:
- lib/senko/compiler/instruction.rb
Instance Attribute Summary collapse
-
#keyword_location ⇒ Object
Returns the value of attribute keyword_location.
-
#op ⇒ Object
Returns the value of attribute op.
-
#payload ⇒ Object
Returns the value of attribute payload.
-
#schema ⇒ Object
Returns the value of attribute schema.
Instance Method Summary collapse
Instance Attribute Details
#keyword_location ⇒ Object
Returns the value of attribute keyword_location
64 65 66 |
# File 'lib/senko/compiler/instruction.rb', line 64 def keyword_location @keyword_location end |
#op ⇒ Object
Returns the value of attribute op
64 65 66 |
# File 'lib/senko/compiler/instruction.rb', line 64 def op @op end |
#payload ⇒ Object
Returns the value of attribute payload
64 65 66 |
# File 'lib/senko/compiler/instruction.rb', line 64 def payload @payload end |
#schema ⇒ Object
Returns the value of attribute schema
64 65 66 |
# File 'lib/senko/compiler/instruction.rb', line 64 def schema @schema end |
Instance Method Details
#keyword ⇒ Object
65 66 67 |
# File 'lib/senko/compiler/instruction.rb', line 65 def keyword Instructions::KEYWORDS.fetch(op, op.to_s) end |