Class: Melbourne::AST::Negate
Overview
A negation as in:
-1
Instance Attribute Summary collapse
-
#value ⇒ Object
The value that is negated.
Attributes inherited from Node
Instance Method Summary collapse
-
#initialize(line, value) ⇒ Negate
constructor
A new instance of Negate.
Methods inherited from Node
Constructor Details
#initialize(line, value) ⇒ Negate
374 375 376 377 |
# File 'lib/melbourne/ast/sends.rb', line 374 def initialize(line, value) @line = line @value = value end |
Instance Attribute Details
#value ⇒ Object
The value that is negated
372 373 374 |
# File 'lib/melbourne/ast/sends.rb', line 372 def value @value end |