Object
A set of context-specific overrides for smell detectors.
# File lib/reek/core/smell_configuration.rb, line 51 def initialize(hash) @hash = hash end
Find any overrides that match the supplied context
# File lib/reek/core/smell_configuration.rb, line 56 def for_context(context) contexts = @hash.keys.select {|ckey| context.matches?([ckey])} contexts.map { |exc| @hash[exc] } end
[Validate]
Generated with the Darkfish Rdoc Generator 2.