Class: File
- Inherits:
-
Object
- Object
- File
- Defined in:
- lib/wwmd/class_extensions/extensions_base.rb
Class Method Summary collapse
-
.write(filename, contents) ⇒ Object
write string to file.
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 |