Class: Ehbrs::Tools::Vg::Patches::TempFiles
- Inherits:
 - 
      Object
      
        
- Object
 - Ehbrs::Tools::Vg::Patches::TempFiles
 
 
- Defined in:
 - lib/ehbrs/tools/vg/patches/temp_files.rb
 
Instance Method Summary collapse
Instance Method Details
#input ⇒ Object
      12 13 14  | 
    
      # File 'lib/ehbrs/tools/vg/patches/temp_files.rb', line 12 def input swaped? ? temp0 : initial end  | 
  
#move_result_to(dest) ⇒ Object
      16 17 18 19 20  | 
    
      # File 'lib/ehbrs/tools/vg/patches/temp_files.rb', line 16 def move_result_to(dest) return unless swaped? ::FileUtils.mv(temp0.to_path, dest.to_path) end  | 
  
#output ⇒ Object
      22 23 24  | 
    
      # File 'lib/ehbrs/tools/vg/patches/temp_files.rb', line 22 def output temp1 end  | 
  
#swap ⇒ Object
      26 27 28 29 30 31  | 
    
      # File 'lib/ehbrs/tools/vg/patches/temp_files.rb', line 26 def swap temp0_current = temp0 self.temp0 = temp1 self.temp1 = temp0_current @swaped = true end  | 
  
#swaped? ⇒ Boolean
      33 34 35  | 
    
      # File 'lib/ehbrs/tools/vg/patches/temp_files.rb', line 33 def swaped? @swaped ? true : false end  |