Class: File

Inherits:
Object
  • Object
show all
Defined in:
lib/assert2.rb

Class Method Summary collapse

Class Method Details

.write(filename, contents) ⇒ Object



342
343
344
# File 'lib/assert2.rb', line 342

def self.write(filename, contents)
  open(filename, 'w'){|f|  f.write(contents)  }
end