Class: RuboCop::Cop::Kata::AgentNoun

Inherits:
Base
  • Object
show all
Defined in:
lib/rubocop/cop/kata/agent_noun.rb

Constant Summary collapse

MSG =
"`%s` names a doer; name the class for the thing it is, not the work it does."
SUFFIX =
/(?:er|or)\z/

Instance Method Summary collapse

Instance Method Details

#on_class(node) ⇒ Object



8
# File 'lib/rubocop/cop/kata/agent_noun.rb', line 8

def on_class(node) = check(node)

#on_module(node) ⇒ Object



10
# File 'lib/rubocop/cop/kata/agent_noun.rb', line 10

def on_module(node) = check(node)