lib/invokr/builder.rb in invokr-0.9.1 vs lib/invokr/builder.rb in invokr-0.9.2
- old
+ new
@@ -63,10 +63,10 @@
@keyword_args[identifier] = arg
end
def handle_key_arg identifier
return unless injector.has_key? identifier
- @keyword_args[identifier] = injector[identifier]
+ @keyword_args[identifier] = injector.fetch identifier do nil end
end
def handle_rest_arg identifier
raise UnsupportedArgumentsError.new(self, [identifier])
end