Module: Avm::RunnerWith::FileReplacer::TopMethods

Defined in:
lib/avm/runner_with/file_replacer.rb

Instance Method Summary collapse

Instance Method Details

#replace_file?(_file) ⇒ Boolean



16
17
18
# File 'lib/avm/runner_with/file_replacer.rb', line 16

def replace_file?(_file)
  true
end

#text_replacerObject



12
13
14
# File 'lib/avm/runner_with/file_replacer.rb', line 12

def text_replacer
  ::Avm::Files::TextReplacer.new
end

#traverser_check_file(file) ⇒ Object



20
21
22
23
24
# File 'lib/avm/runner_with/file_replacer.rb', line 20

def traverser_check_file(file)
  return unless replace_file?(file)

  infov 'Changed', file if text_replacer.file_apply(file)
end