Module: Kernel (Ruby 2.3.7)
Description: Module : Kernel - Ruby 2.3.7

- Home
- Core 2.3.7
- Std-lib 2.3.7
- Downloads

Support for the Ruby 2.3 series has ended. See here for reference.

### Home Classes Methods

### In Files

- pp.rb

### Methods

- #pretty_inspect

### Class/Module Index

Quicksearch

- Kernel
- PP
- PP::PPMethods

No matching classes.

# 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 12
    def pretty_inspect
      PP.pp(self, ''.dup)
    end