I have a large hash with nested arrays and hashes. I would like to simply print it out so it ‘readable’ to the user.
I would like it to be sort of like to_yaml – that’s pretty readable – but still too tech looking.
Ultimately its going to be end users who need to read these data chunks so they need to be formatted cleanly.
Any suggestions?
Use
ppif you need a built-in solution and just want reasonable line breaks.Use awesome_print if you can install a gem. (Depending on your users, you may wish to use the
index:falseoption to turn off displaying array indices.)