Sha256: 5a4ce2947cc2dc7aedc58c4bb4b6fca7fac565803491d3f1df9c466d954b3a40

Contents?: true

Size: 351 Bytes

Versions: 6

Compression:

Stored size: 351 Bytes

Contents

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

require 'pp'

# 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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
ramaze-0.1.4 lib/ramaze/snippets/kernel/pretty_inspect.rb
ramaze-0.1.3 lib/ramaze/snippets/kernel/pretty_inspect.rb
ramaze-0.1.1 lib/ramaze/snippets/kernel/pretty_inspect.rb
ramaze-0.1.2 lib/ramaze/snippets/kernel/pretty_inspect.rb
ramaze-0.2.0 lib/ramaze/snippets/kernel/pretty_inspect.rb
ramaze-0.2.1 lib/ramaze/snippets/kernel/pretty_inspect.rb