Class: IO

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

Class Method Summary collapse

Class Method Details

.write(filename, str, mode = 'w') ⇒ Object



159
160
161
# File 'lib/cerberus/utils.rb', line 159

def self.write(filename, str, mode='w')
  File.open(filename, mode){|f| f.write str}
end