Class: NotNode
Instance Attribute Summary
Attributes inherited from Node
Instance Method Summary collapse
- #evaluate ⇒ Object
-
#initialize(node) ⇒ NotNode
constructor
A new instance of NotNode.
Methods inherited from Node
Constructor Details
#initialize(node) ⇒ NotNode
Returns a new instance of NotNode.
77 78 79 |
# File 'lib/nodes/basenodes.rb', line 77 def initialize(node) @node = node end |
Instance Method Details
#evaluate ⇒ Object
81 82 83 |
# File 'lib/nodes/basenodes.rb', line 81 def evaluate not @node.evaluate end |