Extended maintenance of Ruby versions 1.8.7 and 1.9.2 ended on July 31, 2014. Read more

In Files

  • pp.rb

Kernel

Public Class Methods

pp(*objs) click to toggle source

prints arguments in pretty form.

pp returns nil.

 
               # File pp.rb, line 58
def pp(*objs) # :doc:
  objs.each {|obj|
    PP.pp(obj)
  }
  nil
end
            

Public Instance Methods

pretty_inspect() click to toggle source

returns a pretty printed object as a string.

 
               # File pp.rb, line 50
def pretty_inspect
  PP.pp(self, '')
end
            

Private Instance Methods

pp(*objs) click to toggle source

prints arguments in pretty form.

pp returns nil.

 
               # File pp.rb, line 58
def pp(*objs) # :doc:
  objs.each {|obj|
    PP.pp(obj)
  }
  nil
end