Class: RuboCop::Cop::Elegant::GoodMethodName

Inherits:
Base
  • Object
show all
Defined in:
lib/rubocop/cop/elegant/good_method_name.rb

Constant Summary collapse

MSG =
'Method name "%<name>s" does not match the required pattern'

Instance Method Summary collapse

Instance Method Details

#on_def(node) ⇒ Object



12
13
14
# File 'lib/rubocop/cop/elegant/good_method_name.rb', line 12

def on_def(node)
  check(node, node.method_name.to_s)
end

#on_defs(node) ⇒ Object



16
17
18
# File 'lib/rubocop/cop/elegant/good_method_name.rb', line 16

def on_defs(node)
  check(node, node.method_name.to_s)
end