Class: I15R::FileWriter

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

Instance Method Summary collapse

Instance Method Details

#write(path, content) ⇒ Object



3
4
5
# File 'lib/i15r/file_writer.rb', line 3

def write(path, content)
  open(File.expand_path(path), "w") { |f| f.write(content) }
end