Module: Metamorpher::Mutator

Includes:
Transformer::Base
Defined in:
lib/metamorpher/mutator.rb

Instance Method Summary collapse

Methods included from Transformer::Base

#driver, #transform, #transform_file, #transform_files

Instance Method Details

#merge(src, replacements, &block) ⇒ Object



11
12
13
# File 'lib/metamorpher/mutator.rb', line 11

def merge(src, replacements, &block)
  replacements.map { |replacement| Transformer::Merger.new(src).merge(replacement, &block) }
end