Module: Jsonpretty
Overview
some extensions for easier visualise data in irb
Instance Method Summary collapse
Instance Method Details
#jp ⇒ Object
138 139 140 141 |
# File 'lib/alpha_ess.rb', line 138 def jp # return in json_pretty JSON.pretty_generate(self) end |
#jpp ⇒ Object
142 143 144 145 |
# File 'lib/alpha_ess.rb', line 142 def jpp # print in json_pretty puts JSON.pretty_generate(self) end |