lib/code/node/negation.rb in code-ruby-0.13.1 vs lib/code/node/negation.rb in code-ruby-0.14.0
- old
+ new
@@ -3,9 +3,10 @@
class Code
class Node
class Negation < Node
def initialize(parsed)
return if parsed.blank?
+
@operator = parsed.delete(:operator).presence
@right = Node::Statement.new(parsed.delete(:right).presence)
end
def evaluate(**args)