Module: Kernel

Defined in:
lib/pp-colour/kernel.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.pp(*objs) ⇒ Object

prints arguments in pretty form.

pp returns nil.



11
12
13
14
15
16
# File 'lib/pp-colour/kernel.rb', line 11

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.



3
4
5
# File 'lib/pp-colour/kernel.rb', line 3

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