Class: RuboCop::Cop::Elegant::GoodMethodName
- Inherits:
-
Base
- Object
- Base
- RuboCop::Cop::Elegant::GoodMethodName
- Defined in:
- lib/rubocop/cop/elegant/good_method_name.rb
Overview
SPDX-FileCopyrightText: Copyright © 2019-2026 Yegor Bugayenko SPDX-License-Identifier: MIT
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
10 11 12 |
# File 'lib/rubocop/cop/elegant/good_method_name.rb', line 10 def on_def(node) check(node, node.method_name.to_s) end |
#on_defs(node) ⇒ Object
14 15 16 |
# File 'lib/rubocop/cop/elegant/good_method_name.rb', line 14 def on_defs(node) check(node, node.method_name.to_s) end |