Sha256: a8d11889349c2425b1654b70329c173d8512e86357b8e3bd47a778fe03737426

Contents?: true

Size: 362 Bytes

Versions: 1

Compression:

Stored size: 362 Bytes

Contents

module Coco
  
  # Public: I write a single file.
  module FileWriter
    extend self

    # Public: Write a file.
    #
    # filename - String path+name of the file.
    # content  - String content to put in the file.
    #
    # Returns nothing.
    def write(filename, content)
      File.open(filename, 'w') {|file| file.write(content) }
    end
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
coco-0.13.0 lib/coco/writer/file_writer.rb