Class: Reek::Smells::LongYieldList
- Inherits:
-
LongParameterList
- Object
- SmellDetector
- LongParameterList
- Reek::Smells::LongYieldList
- Defined in:
- lib/reek/smells/long_yield_list.rb
Constant Summary
Constants inherited from LongParameterList
Reek::Smells::LongParameterList::MAX_ALLOWED_PARAMS_KEY
Constants inherited from SmellDetector
SmellDetector::ENABLED_KEY, SmellDetector::EXCLUDE_KEY
Class Method Summary collapse
-
.contexts ⇒ Object
:nodoc:.
Instance Method Summary collapse
-
#initialize(config) ⇒ LongYieldList
constructor
A new instance of LongYieldList.
Methods inherited from LongParameterList
default_config, #examine_context
Methods inherited from SmellDetector
class_name, default_config, #examine, #examine_context, #exception?, listen, #smell_name
Constructor Details
#initialize(config) ⇒ LongYieldList
Returns a new instance of LongYieldList.
12 13 14 15 |
# File 'lib/reek/smells/long_yield_list.rb', line 12 def initialize(config) super @action = 'yields' end |
Class Method Details
.contexts ⇒ Object
:nodoc:
8 9 10 |
# File 'lib/reek/smells/long_yield_list.rb', line 8 def self.contexts # :nodoc: [:yield] end |