From: Gavin Sinclair Date: 2004-02-13T01:20:00+09:00 Subject: Re: pp equiv of #inspect On Friday, February 13, 2004, 3:05:01 AM, Ara.T.Howard wrote: > what i am after is a method on object, or that takes an object, which returns > as a string the output that pp(object) would have produced. i know i can do > PP.pp(obj, port) but am looking for something shorter... FWIW: require 'extensions/object' # from Rubyforge x = some_object.pp_s Not a great name, perhaps; I just picked it up somewhere and liked the idea. Gavin