lib/code/node/call.rb in code-ruby-0.3.1 vs lib/code/node/call.rb in code-ruby-0.4.0
- old
+ new
@@ -20,9 +20,10 @@
end
def evaluate(**args)
if @right
left = @left.evaluate(**args)
+
@right.reduce(left) do |acc, element|
element.evaluate(**args.merge(object: acc))
end
else
arguments =