lib/code/node/call_argument.rb in code-ruby-0.13.1 vs lib/code/node/call_argument.rb in code-ruby-0.14.0

- old
+ new

@@ -3,21 +3,21 @@ class Code class Node class CallArgument < Node def initialize(parsed) return if parsed.blank? + @value = Node::Code.new(parsed.delete(:value).presence) @name = parsed.delete(:name).presence end def evaluate(**args) if @name - Object::Argument.new( - @value&.evaluate(**args) || Object::Nothing.new, - name: + Object::Dictionary.new( + name => @value&.evaluate(**args) || Object::Nothing.new ) else - Object::Argument.new(@value&.evaluate(**args) || Object::Nothing.new) + @value&.evaluate(**args) || Object::Nothing.new end end def keyword? !!@name