L
List Recv
I'd like to capture the output of pp (PrettyPrint) as a string, as
opposed to putting it on stdout.
Something like:
dump = myvar.pp
dump.class # => String
(Using .pretty_print_inspect is not adequate, as it's not the same as
pp, has no newlines, etc.)
Thanks!
opposed to putting it on stdout.
Something like:
dump = myvar.pp
dump.class # => String
(Using .pretty_print_inspect is not adequate, as it's not the same as
pp, has no newlines, etc.)
Thanks!