I am trying to get awesome_print
to output to a file rather than the console but I cant find out how to do this?
require "awesome_print"
mySymbolizedHash = {'blah' => 'blabbbb', 'this' => 'that'}
ap mySymbolizedHash
File.open('some_file', 'w') do |f|
f.write mySymbolizedHash.awesome_inspect
end
awesome_inspect
seems undocumented, but ai
seems to be an alias, and that's used all over the place.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With