lib/invokr/builder.rb in invokr-0.0.5 vs lib/invokr/builder.rb in invokr-0.0.6

- old
+ new

@@ -29,10 +29,14 @@ build_invocation end def build_invocation @block_arg = @implicit_block if @implicit_block - Invocation.new method.name, @positional_args, @keyword_args, @block_arg + if method.is_a? Proc + Invocation.new :call, @positional_args, @keyword_args, @block_arg + else + Invocation.new method.name, @positional_args, @keyword_args, @block_arg + end end def handle_args! method.parameters.each do |type, identifier| send "handle_#{type}_arg", identifier