Class: ModuleNode

Inherits:
BinaryNode show all
Defined in:
lib/ast.rb

Overview

modulo————————————————–

Instance Attribute Summary

Attributes inherited from BinaryNode

#left, #right

Instance Method Summary collapse

Constructor Details

#initialize(left, right) ⇒ ModuleNode



63
64
65
# File 'lib/ast.rb', line 63

def initialize(left, right)
  super(left,right)
end

Instance Method Details

#evaluateObject



67
68
69
# File 'lib/ast.rb', line 67

def evaluate()
  return @left.evaluate()  %  @right.evaluate()
end