Class: Genit::FileWriter

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

Overview

Write a file on disk.

Class Method Summary collapse

Class Method Details

.write(content, full_path) ⇒ Object



10
11
12
13
# File 'lib/genit/utils/file_writer.rb', line 10

def self.write content, full_path
  create_dirs full_path
  File.open(full_path, "w") {|out| out.puts content }
end