In Files

Kernel

Public Class Methods

pp(*objs) click to toggle source

prints arguments in pretty form.

pp returns argument(s).

                
# File pp.rb, line 58
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 50
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 58
def pp(*objs) # :doc:
  objs.each {|obj|
    PP.pp(obj)
  }
  objs.size <= 1 ? objs.first : objs
end
blog comments powered by Disqus