Method: RubyParserStuff#block_dup_check

Defined in:
lib/ruby_parser_extras.rb

#block_dup_check(call_or_args, block) ⇒ Object



1100
1101
1102
1103
# File 'lib/ruby_parser_extras.rb', line 1100

def block_dup_check call_or_args, block
  syntax_error "Both block arg and actual block given." if
    block and call_or_args.block_pass?
end