Class: File

Inherits:
Object
  • Object
show all
Defined in:
lib/pipe2me/ext/file_ext.rb

Class Method Summary collapse

Class Method Details

.write(path, data = nil) ⇒ Object



4
5
6
7
8
# File 'lib/pipe2me/ext/file_ext.rb', line 4

def self.write(path, data=nil)
  open path, "w" do |io|
    io.write data
  end
end