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

Returns:

  • (Boolean)


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

def replace_file?(_file)
  true
end

#text_replacerObject



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

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

#traverser_check_file(file) ⇒ Object



24
25
26
27
28
# File 'lib/avm/runner_with/file_replacer.rb', line 24

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

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