Class: Recode::Handler::Apply

Inherits:
Output show all
Defined in:
lib/recode/handler/apply.rb

Instance Method Summary collapse

Methods inherited from Base

#rename_file, #save_file, #show_edit, #show_rename

Methods included from Diffing

#diff

Instance Method Details

#edit(file:, before:, after:) ⇒ Object



9
10
11
12
# File 'lib/recode/handler/apply.rb', line 9

def edit(file:, before:, after:)
  super
  save_file file, after
end

#rename(source:, target:) ⇒ Object



4
5
6
7
# File 'lib/recode/handler/apply.rb', line 4

def rename(source:, target:)
  super
  rename_file source, target
end