Module: Kernel

Defined in:
lib/rubysl/prettyprint/pp.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.pp(*objs) ⇒ Object

prints arguments in pretty form.

pp returns nil.



58
59
60
61
62
63
# File 'lib/rubysl/prettyprint/pp.rb', line 58

def pp(*objs) # :doc:
  objs.each {|obj|
    PP.pp(obj)
  }
  nil
end

Instance Method Details

#pretty_inspectObject

returns a pretty printed object as a string.



50
51
52
# File 'lib/rubysl/prettyprint/pp.rb', line 50

def pretty_inspect
  PP.pp(self, '')
end