Class: ModuleNode
- Inherits:
-
BinaryNode
- Object
- BinaryNode
- ModuleNode
- Defined in:
- lib/ast.rb
Instance Attribute Summary
Attributes inherited from BinaryNode
Instance Method Summary collapse
- #evaluate ⇒ Object
-
#initialize(left, right) ⇒ ModuleNode
constructor
A new instance of ModuleNode.
Constructor Details
#initialize(left, right) ⇒ ModuleNode
Returns a new instance of ModuleNode.
120 121 122 |
# File 'lib/ast.rb', line 120 def initialize(left, right) super(left,right) end |
Instance Method Details
#evaluate ⇒ Object
124 125 126 |
# File 'lib/ast.rb', line 124 def evaluate @left.evaluate() % @right.evaluate() end |