Sha256: 2782c3721f6e159315cc225766cafd4f1f01274643370113caf4725646a0bd71

Contents?: true

Size: 399 Bytes

Versions: 97

Compression:

Stored size: 399 Bytes

Contents

# frozen_string_literal: true

require 'eac_ruby_utils/core_ext'

module Avm
  module Files
    class TextReplacer
      class Gsub
        common_constructor :from, :to do
          self.from = from
          self.to = to
        end

        def apply(input)
          input.gsub(from, to)
        end

        def to_s
          "\"#{from}\" => \"#{to}\""
        end
      end
    end
  end
end

Version data entries

97 entries across 97 versions & 2 rubygems

Version Path
eac_tools-0.61.1 sub/avm-files/lib/avm/files/text_replacer/gsub.rb
eac_tools-0.61.0 sub/avm-files/lib/avm/files/text_replacer/gsub.rb
avm-files-0.6.1 lib/avm/files/text_replacer/gsub.rb
eac_tools-0.60.3 sub/avm-files/lib/avm/files/text_replacer/gsub.rb
eac_tools-0.60.2 sub/avm-files/lib/avm/files/text_replacer/gsub.rb
eac_tools-0.60.1 sub/avm-files/lib/avm/files/text_replacer/gsub.rb
eac_tools-0.60.0 sub/avm-files/lib/avm/files/text_replacer/gsub.rb
eac_tools-0.59.0 sub/avm-files/lib/avm/files/text_replacer/gsub.rb
eac_tools-0.58.0 sub/avm-files/lib/avm/files/text_replacer/gsub.rb
eac_tools-0.57.0 sub/avm-files/lib/avm/files/text_replacer/gsub.rb
eac_tools-0.56.1 sub/avm-files/lib/avm/files/text_replacer/gsub.rb
eac_tools-0.56.0 sub/avm-files/lib/avm/files/text_replacer/gsub.rb
eac_tools-0.55.7 sub/avm-files/lib/avm/files/text_replacer/gsub.rb
eac_tools-0.55.6 sub/avm-files/lib/avm/files/text_replacer/gsub.rb
eac_tools-0.55.5 sub/avm-files/lib/avm/files/text_replacer/gsub.rb
eac_tools-0.55.4 sub/avm-files/lib/avm/files/text_replacer/gsub.rb
eac_tools-0.55.3 sub/avm-files/lib/avm/files/text_replacer/gsub.rb
eac_tools-0.55.2 sub/avm-files/lib/avm/files/text_replacer/gsub.rb
eac_tools-0.55.1 sub/avm-files/lib/avm/files/text_replacer/gsub.rb
eac_tools-0.55.0 sub/avm-files/lib/avm/files/text_replacer/gsub.rb