Class: Ppson::StdoutJsonWriter

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

Instance Method Summary collapse

Instance Method Details

#write(contents, options = {:pretty => false}) ⇒ Object



3
4
5
# File 'lib/ppjson/stdout_json_writer.rb', line 3

def write(contents, options = {:pretty => false})
  Ppjson::StreamJsonWriter.new.write(contents, :pretty => options[:pretty])
end