Class: Melbourne::AST::Not
Overview
The not operator as in:
(not true)
Instance Attribute Summary collapse
-
#value ⇒ Object
The value that is negated.
Attributes inherited from Node
Instance Method Summary collapse
-
#initialize(line, value) ⇒ Not
constructor
A new instance of Not.
Methods inherited from Node
Constructor Details
#initialize(line, value) ⇒ Not
Returns a new instance of Not.
45 46 47 48 |
# File 'lib/melbourne/ast/operators.rb', line 45 def initialize(line, value) @line = line @value = value end |
Instance Attribute Details
#value ⇒ Object
The value that is negated
43 44 45 |
# File 'lib/melbourne/ast/operators.rb', line 43 def value @value end |