Class: Organo::Writer

Inherits:
Object
  • Object
show all
Defined in:
lib/organo/tools/writer.rb

Class Method Summary collapse

Class Method Details

.to_file(obj, file_path) ⇒ Object



7
8
9
# File 'lib/organo/tools/writer.rb', line 7

def self.to_file(obj, file_path)
  File.write(file_path, JSON.pretty_generate(obj))
end