Support for the Ruby 2.1 series ended on March 31 2017. See here for details.

In Files

  • pp.rb

Methods

Class/Module Index [+]

Quicksearch

Kernel

Public Instance Methods

pretty_inspect() click to toggle source

Returns a pretty printed object as a string.

In order to use this method you must first require the PP module:

require 'pp'

See the PP module for more information.

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