Module: Knuckles::Stages::Enhancer

Extended by:
Enhancer
Included in:
Enhancer
Defined in:
lib/knuckles/stages/enhancer.rb

Instance Method Summary collapse

Instance Method Details

#call(prepared, options) ⇒ Object



8
9
10
11
12
13
14
15
16
17
18
# File 'lib/knuckles/stages/enhancer.rb', line 8

def call(prepared, options)
  enhancer = options[:enhancer]

  if enhancer
    prepared.each do |hash|
      hash[:result] = enhancer.call(hash[:result], options)
    end
  end

  prepared
end