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

### Home Classes Methods

### In Files

- pp.rb

### Methods

- ::pp
- #pretty_inspect

### Class/Module Index

Quicksearch

- Kernel
- PP
- PP::PPMethods

No matching classes.

# Kernel

### Public Class Methods

pp(*objs) click to toggle source

prints arguments in pretty form.

pp returns argument(s).

                   # File pp.rb, line 552
    def pp(*objs)
      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.

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