PP

class PP

Parent:
PrettyPrint
Included modules:
PP::PPMethods

A pretty-printer for Ruby objects.

All examples assume you have loaded the PP class with:

require 'pp'

What PP Does

Standard output by p returns this:

#<PP:0x81fedf0 @genspace=#<Proc:0x81feda0>, @group_queue=#<PrettyPrint::GroupQueue:0x81fed3c @queue=[[#<PrettyPrint::Group:0x81fed78 @breakables=[], @depth=0, @break=false>], []]>, @buffer=[], @newline="\n", @group_stack=[#<PrettyPrint::Group:0x81fed78 @breakables=[], @depth=0, @break=fa