On 1/24/07, Giles Bowkett <gilesb / gmail.com> wrote: > (irb) > >> "asdf".pretty_print_inspect > RuntimeError: pretty_print is not overridden for String > from /opt/local/lib/ruby/1.8/pp.rb:293:in `pretty_print_inspect' > from (irb):1 Okay, it's convoluted but: >> require 'stringio' >> require 'pp' >> a = "" >> b = StringIO.new(a, 'w') >> c = "hello world" >> PP.pp(c, b) => #<StringIO:0xb7c98e70> >> a => "\"hello world\"\n" martin