Method: Parser::Ruby18#_reduce_51

Defined in:
lib/parser/ruby18.rb

#_reduce_51(val, _values, result) ⇒ Object

[View source]

6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886
# File 'lib/parser/ruby18.rb', line 6876

def _reduce_51(val, _values, result)
                      lparen_t, args, rparen_t = val[1]
                      method_call = @builder.call_method(nil, nil, val[0],
                                      lparen_t, args, rparen_t)

                      begin_t, block_args, body, end_t = val[2]
                      result      = @builder.block(method_call,
                                      begin_t, block_args, body, end_t)

    result
end