Class: Malady::AST::MinusNode
- Inherits:
-
BinaryNode
- Object
- Node
- BinaryNode
- Malady::AST::MinusNode
- Defined in:
- lib/malady/ast.rb
Instance Attribute Summary
Attributes inherited from BinaryNode
Attributes inherited from Node
Instance Method Summary collapse
Methods inherited from BinaryNode
Methods inherited from Node
Constructor Details
This class inherits a constructor from Malady::AST::BinaryNode
Instance Method Details
#bytecode(g) ⇒ Object
86 87 88 89 90 91 |
# File 'lib/malady/ast.rb', line 86 def bytecode(g) pos(g) lhs.bytecode(g) rhs.bytecode(g) g.send(:-, 1) end |