Class: Ppson::StdoutJsonWriter
- Inherits:
-
Object
- Object
- Ppson::StdoutJsonWriter
- 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, = {:pretty => false}) Ppjson::StreamJsonWriter.new.write(contents, :pretty => [:pretty]) end |