Sha256: 56e8951bbc6a1bb2f688f24abae0c406478724c8b5c3a9cd05cf205cf7751f67
Contents?: true
Size: 359 Bytes
Versions: 2
Compression:
Stored size: 359 Bytes
Contents
module Coco # Public: I write a single file. # module FileWriter # Public: Write a file. # # filename - String path+name of the file. # content - String content to put in the file. # # Returns nothing. # def self.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.15.0 | lib/coco/writer/file_writer.rb |
coco-0.14.0 | lib/coco/writer/file_writer.rb |