Class: What::Formatters::JSON
Instance Method Summary collapse
Instance Method Details
#format(hash) ⇒ Object
7 8 9 |
# File 'lib/what/formatters/json.rb', line 7 def format(hash) JSON.unparse(hash) + "\n" end |
#mime ⇒ Object
3 4 5 |
# File 'lib/what/formatters/json.rb', line 3 def mime 'application/json' end |