Class: Reek::Smells::LongYieldList

Inherits:
LongParameterList show all
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

Instance Method Summary collapse

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

.contextsObject

:nodoc:



8
9
10
# File 'lib/reek/smells/long_yield_list.rb', line 8

def self.contexts      # :nodoc:
  [:yield]
end