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::DEFAULT_MAX_ALLOWED_PARAMS, Reek::Smells::LongParameterList::MAX_ALLOWED_PARAMS_KEY
Constants inherited from SmellDetector
SmellDetector::DEFAULT_EXCLUDE_SET, SmellDetector::EXCLUDE_KEY
Class Method Summary collapse
-
.contexts ⇒ Object
:nodoc:.
Instance Method Summary collapse
-
#initialize(config = LongYieldList.default_config) ⇒ LongYieldList
constructor
A new instance of LongYieldList.
Methods inherited from LongParameterList
default_config, #examine_context
Methods inherited from SmellDetector
class_name, #configure, #configure_with, #copy, create, default_config, #enabled?, #examine, #examine_context, #exception?, #found, #has_smell?, listen, #listen_to, #num_smells, #report_on, #smell_name, #smelly?, #supersede_with, #value
Constructor Details
#initialize(config = LongYieldList.default_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 = LongYieldList.default_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 |