module Coco::FileWriter

Public: I write a single file.

Public Class Methods

write(filename, content) click to toggle source

Public: Write a file.

filename - String path+name of the file. content - String content to put in the file.

Returns nothing.

# File lib/coco/writer/file_writer.rb, line 14
def self.write(filename, content)
  File.open(filename, 'w') { |file| file.write(content) }
end