Sha256: bf0c006d5864c3e0d2416db7b000ba4fb75465335421647b792e61b1fbee02fe

Contents?: true

Size: 413 Bytes

Versions: 6

Compression:

Stored size: 413 Bytes

Contents

require "metamorpher/transformer/base"
require "metamorpher/transformer/merger"

module Metamorpher
  module Refactorer
    include Transformer::Base
    alias_method :refactor, :transform
    alias_method :refactor_file, :transform_file
    alias_method :refactor_files, :transform_files

    def merge(src, replacements, &block)
      Transformer::Merger.new(src).merge(*replacements, &block)
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
metamorpher-0.2.6 lib/metamorpher/refactorer.rb
metamorpher-0.2.5 lib/metamorpher/refactorer.rb
metamorpher-0.2.4 lib/metamorpher/refactorer.rb
metamorpher-0.2.3 lib/metamorpher/refactorer.rb
metamorpher-0.2.2 lib/metamorpher/refactorer.rb
metamorpher-0.2.1 lib/metamorpher/refactorer.rb