Class: FixToChix::FactoryWriter

Inherits:
Object
  • Object
show all
Defined in:
lib/fix_to_chix/factory_writer.rb

Class Method Summary collapse

Class Method Details

.write(output_buffer, target_file) ⇒ Object



5
6
7
8
9
# File 'lib/fix_to_chix/factory_writer.rb', line 5

def self.write(output_buffer, target_file)
  File.open(target_file, 'a') do |f|
    output_buffer.each { |output| f.puts output }
  end
end