Awesome print

Awesome Print is a Ruby library that pretty prints Ruby objects in full color exposing their internal structure with proper indentation.

Installation

gem install awesome_print

Add gem to your Gemfile and bundle it

group :development do
    gem "awesome_print"
end

Integration

Add the following line in your .irbrc file

require "awesome_print"
AwesomePrint.irb!

Setting Custom settings Add the following lines to your .aprc file.

AwesomePrint.defaults = {
  :indent => -2,
  :color => {
  :hash  => :pale,
  :class => :white
      }
}