Method: RuboCop::Cop::Lint::RefinementImportMethods#on_send
- Defined in:
- lib/rubocop/cop/lint/refinement_import_methods.rb
#on_send(node) ⇒ Object
42 43 44 45 46 47 48 |
# File 'lib/rubocop/cop/lint/refinement_import_methods.rb', line 42 def on_send(node) return if node.receiver return unless (parent = node.parent) return unless parent.block_type? && parent.method?(:refine) add_offense(node.loc.selector, message: format(MSG, current: node.method_name)) end |