Class: File

Inherits:
Object
  • Object
show all
Defined in:
lib/wwmd/class_extensions/extensions_base.rb

Class Method Summary collapse

Class Method Details

.write(filename, contents) ⇒ Object

write string to file



241
242
243
244
245
# File 'lib/wwmd/class_extensions/extensions_base.rb', line 241

def self.write(filename,contents)
  fout = File.open(filename,"w")
  fout.print contents
  fout.close
end