Maintenance of Ruby 2.0.0 ended on February 24, 2016. Read more

In Files

  • pp.rb

Kernel

Public Class Methods

pp(*objs) click to toggle source

prints arguments in pretty form.

pp returns argument(s).

 
               # File pp.rb, line 13
def pp(*objs) # :doc:
  objs.each {|obj|
    PP.pp(obj)
  }
  objs.size <= 1 ? objs.first : objs
end
            

Public Instance Methods

pretty_inspect() click to toggle source

returns a pretty printed object as a string.

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

Private Instance Methods

pp(*objs) click to toggle source

prints arguments in pretty form.

pp returns argument(s).

 
               # File pp.rb, line 13
def pp(*objs) # :doc:
  objs.each {|obj|
    PP.pp(obj)
  }
  objs.size <= 1 ? objs.first : objs
end