Parent

Class/Module Index [+]

Quicksearch

Reek::Core::Overrides

A set of context-specific overrides for smell detectors.

Public Class Methods

new(hash) click to toggle source
# File lib/reek/core/smell_configuration.rb, line 51
def initialize(hash)
  @hash = hash
end

Public Instance Methods

for_context(context) click to toggle source

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.