Sha256: b8771f63b603843f9287458386ba41c30e31d349b4683035e0817dd2407a5eb9
Contents?: true
Size: 389 Bytes
Versions: 2
Compression:
Stored size: 389 Bytes
Contents
# -*- encoding: utf-8 -*- 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
coco-0.12.0 | lib/coco/writer/file_writer.rb |
coco-0.11.0 | lib/coco/writer/file_writer.rb |