Class: EhbrsRubyUtils::Vg::Wii::FileMove

Inherits:
Object
  • Object
show all
Defined in:
lib/ehbrs_ruby_utils/vg/wii/file_move.rb

Instance Method Summary collapse

Instance Method Details

#runObject



24
25
26
27
28
29
30
31
32
33
# File 'lib/ehbrs_ruby_utils/vg/wii/file_move.rb', line 24

def run
  [%w[path type], %w[path], %w[type]].each do |parts|
    next unless parts.all? { |part| send("#{part}_change?") }

    assert_target_dir
    send("change_#{parts.join('_and_')}")
    check_target
    break
  end
end

#sourceObject



35
36
37
# File 'lib/ehbrs_ruby_utils/vg/wii/file_move.rb', line 35

def source
  game.wit_path
end