From: Martin DeMello Date: 2007-01-24T05:19:36+09:00 Subject: Re: help on pp / Wirble (irb)? On 1/24/07, Giles Bowkett 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) => # >> a => "\"hello world\"\n" martin