lib/coco/writer/file_writer.rb in coco-0.13.0 vs lib/coco/writer/file_writer.rb in coco-0.14.0

- old
+ new

@@ -1,18 +1,18 @@ 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) } + # + def self.write(filename, content) + File.open(filename, 'w') { |file| file.write(content) } end end - end