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



12
13
14
# File 'lib/avm/files/text_replacer/gsub.rb', line 12

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

#to_sObject



16
17
18
# File 'lib/avm/files/text_replacer/gsub.rb', line 16

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