lib/core/facets/file/writelines.rb in facets-2.4.5 vs lib/core/facets/file/writelines.rb in facets-2.5.0

- old
+ new

@@ -9,11 +9,10 @@ # appends newlines if necessary. In this small way, +readlines+ and # +writelines+ are not exact opposites. # # Returns +nil+. # - # CREDIT: Noah Gibbs - # CREDIT: Gavin Sinclair + # CREDIT: Noah Gibbs, Gavin Sinclair def self.writelines(path, data) File.open(path, "wb") do |file| file.puts(data) end