Module: Jsonpretty
Overview
some extensions for easier visualise data in irb
Instance Method Summary collapse
Instance Method Details
#jp ⇒ Object
130 131 132 133 |
# File 'lib/alpha_ess.rb', line 130 def jp # return in json_pretty JSON.pretty_generate(self) end |
#jpp ⇒ Object
134 135 136 137 |
# File 'lib/alpha_ess.rb', line 134 def jpp # print in json_pretty puts JSON.pretty_generate(self) end |