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



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

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

#on_defs(node) ⇒ Object



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

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