class RuboCop::Cop::Style::Send

This cop checks for the use of the send method.

Constants

MSG

Public Instance Methods

on_send(node) click to toggle source
# File lib/rubocop/cop/style/send.rb, line 11
def on_send(node)
  _receiver, method_name, *args = *node
  return unless method_name == :send && !args.empty?
  add_offense(node, :selector)
end