Usage

pp(obj)

output obj to $> in pretty printed format.

It returns nil.

Output Customization

To define your customized pretty printing function for your classes,
redefine a method #pretty_print(pp) in the class. It takes an
argument pp which is an instance of the class PP. The method
should use PP#text, PP#breakable, PP#nest, PP#group and PP#pp to print the
object.