Best way to pretty print a hash

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?

14 Answers
14

Leave a Comment