Sha256: d0fe4197b00fb47f5e4e989ef66de9acfeb662662c0daf44f5f87f1c4d2543a1

Contents?: true

Size: 468 Bytes

Versions: 2

Compression:

Stored size: 468 Bytes

Contents

#          Copyright (c) 2008 Michael Fellinger m.fellinger@gmail.com
# All files in this distribution are subject to the terms of the MIT license.

require 'pp'

module Ramaze
  module CoreExtensions
    # Extensions for Kernel
    module Kernel
      unless defined?(pretty_inspect)
        # returns a pretty printed object as a string.
        def pretty_inspect
          PP.pp(self, '')
        end
      end
    end # Kernel
  end # CoreExtensions
end # Ramaze

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ramaze-2012.04.14 lib/ramaze/snippets/kernel/pretty_inspect.rb
ramaze-2012.03.07 lib/ramaze/snippets/kernel/pretty_inspect.rb