# PP (Class)

In: | pp.rb
Parent: | PrettyPrint

## Methods

pp singleline_pp

## Attributes

sharing_detection | [RW] |

## Classes and Modules

Module PP::ObjectMixin
Module PP::PPMethods
Class PP::SingleLine

## Included Modules

PPMethods

## Public Class methods

pp(obj, out=$>, width=79)

[Source]

    # File pp.rb, line 137
      def PP.pp(obj, out=$>, width=79)
        pp = PP.new(out, width)
        pp.guard_inspect_key {pp.pp obj}
        pp.flush
        #$pp = pp

        out << "\n"
      end

singleline_pp(obj, out=$>)

[Source]

    # File pp.rb, line 145
      def PP.singleline_pp(obj, out=$>)
        pp = SingleLine.new(out)
        pp.guard_inspect_key {pp.pp obj}
        pp.flush
        out
      end

[Validate]