Class: File

Inherits:
Object
  • Object
show all
Defined in:
lib/reap/extensions/file.rb

Class Method Summary collapse

Class Method Details

.write(file, str) ⇒ Object



3
4
5
# File 'lib/reap/extensions/file.rb', line 3

def self.write(file, str)
  open(file, 'w'){ |f| f << str.to_s }
end