Class: Avm::Files::TextReplacer::Gsub

Inherits:
Object
  • Object
show all
Defined in:
lib/avm/files/text_replacer/gsub.rb

Instance Method Summary collapse

Instance Method Details

#apply(input) ⇒ Object



14
15
16
# File 'lib/avm/files/text_replacer/gsub.rb', line 14

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

#to_sObject



18
19
20
# File 'lib/avm/files/text_replacer/gsub.rb', line 18

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