lib/core/facets/file/create.rb in facets-2.8.4 vs lib/core/facets/file/create.rb in facets-2.9.0.pre.1

- old
+ new

@@ -4,10 +4,10 @@ # and writes a string into it. Can also take a block # just like File#open, which is yielded _after_ the # string is writ. # # str = 'The content for the file' - # File.create('myfile.txt', str) + # File.create('tmp/myfile.txt', str) # # CREDIT: George Moschovitis def self.create(path, str='', &blk) open(path, 'wb') do |f|