Method: RuboCop::Cop::Lint::UselessRuby2Keywords#on_send

Defined in:
lib/rubocop/cop/lint/useless_ruby2_keywords.rb

#on_send(node) ⇒ Object



79
80
81
82
83
84
85
86
87
# File 'lib/rubocop/cop/lint/useless_ruby2_keywords.rb', line 79

def on_send(node)
  return unless (first_argument = node.first_argument)

  if first_argument.def_type?
    inspect_def(node, first_argument)
  elsif node.first_argument.sym_type?
    inspect_sym(node, first_argument)
  end
end