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