Method: Ripper::RubyBuilder::Call#on_command_call

Defined in:
lib/ripper/ruby_builder/events/call.rb

#on_command_call(target, separator, identifier, args) ⇒ Object



8
9
10
11
12
13
# File 'lib/ripper/ruby_builder/events/call.rb', line 8

def on_command_call(target, separator, identifier, args)
  # happens for identifiers that are operators, e.g. a.<<(foo)
  identifier = pop_identifier(identifier.type) if identifier.try(:known?)
  separator = pop_token(:@period, :"@::")
  Ruby::Call.new(target, separator, identifier, args)
end