lib/invokr/builder.rb in invokr-0.0.4 vs lib/invokr/builder.rb in invokr-0.0.5
- old
+ new
@@ -62,9 +62,14 @@
def handle_key_arg identifier
return unless injector.has_key? identifier
@keyword_args[identifier] = injector[identifier]
end
+ def handle_rest_arg identifier
+ raise UnsupportedArgumentsError.new(self, [identifier])
+ end
+ alias_method :handle_keyrest_arg, :handle_rest_arg
+
def handle_block_arg identifier
if injector.has_key? identifier and @implicit_block
unused_args << identifier and return
end
@block_arg = injector.fetch identifier do