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
avm-files-0.8.1 lib/avm/files/text_replacer/gsub.rb
avm-files-0.8.0 lib/avm/files/text_replacer/gsub.rb
eac_tools-0.93.0 sub/avm-files/lib/avm/files/text_replacer/gsub.rb
avm-files-0.7.0 lib/avm/files/text_replacer/gsub.rb
eac_tools-0.85.0 sub/avm-files/lib/avm/files/text_replacer/gsub.rb
eac_tools-0.84.2 sub/avm-files/lib/avm/files/text_replacer/gsub.rb
eac_tools-0.84.1 sub/avm-files/lib/avm/files/text_replacer/gsub.rb
eac_tools-0.84.0 sub/avm-files/lib/avm/files/text_replacer/gsub.rb
eac_tools-0.83.0 sub/avm-files/lib/avm/files/text_replacer/gsub.rb
eac_tools-0.82.0 sub/avm-files/lib/avm/files/text_replacer/gsub.rb
eac_tools-0.81.0 sub/avm-files/lib/avm/files/text_replacer/gsub.rb
eac_tools-0.80.0 sub/avm-files/lib/avm/files/text_replacer/gsub.rb
eac_tools-0.79.0 sub/avm-files/lib/avm/files/text_replacer/gsub.rb
eac_tools-0.78.0 sub/avm-files/lib/avm/files/text_replacer/gsub.rb
eac_tools-0.77.1 sub/avm-files/lib/avm/files/text_replacer/gsub.rb
eac_tools-0.77.0 sub/avm-files/lib/avm/files/text_replacer/gsub.rb
eac_tools-0.76.1 sub/avm-files/lib/avm/files/text_replacer/gsub.rb
eac_tools-0.76.0 sub/avm-files/lib/avm/files/text_replacer/gsub.rb
eac_tools-0.75.2 sub/avm-files/lib/avm/files/text_replacer/gsub.rb
eac_tools-0.75.1 sub/avm-files/lib/avm/files/text_replacer/gsub.rb