Sha256: 7a29d926a7ca7ef982d9c43165e8c8c4e03f96e73957d3a4d2943e9fc35d48bc

Contents?: true

Size: 437 Bytes

Versions: 44

Compression:

Stored size: 437 Bytes

Contents

#          Copyright (c) 2008 Michael Fellinger m.fellinger@gmail.com
# All files in this distribution are subject to the terms of the Ruby 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

  end
end

Version data entries

44 entries across 44 versions & 5 rubygems

Version Path
Pistos-ramaze-2008.09 lib/ramaze/snippets/kernel/pretty_inspect.rb
Pistos-ramaze-2008.12 lib/ramaze/snippets/kernel/pretty_inspect.rb
Pistos-ramaze-2009.01 lib/ramaze/snippets/kernel/pretty_inspect.rb
Pistos-ramaze-2009.02 lib/ramaze/snippets/kernel/pretty_inspect.rb
Pistos-ramaze-2009.04.08 lib/ramaze/snippets/kernel/pretty_inspect.rb
Pistos-ramaze-2009.06.12 lib/ramaze/snippets/kernel/pretty_inspect.rb
manveru-ramaze-2008.09 lib/ramaze/snippets/kernel/pretty_inspect.rb
manveru-ramaze-2008.10 lib/ramaze/snippets/kernel/pretty_inspect.rb
manveru-ramaze-2008.12 lib/ramaze/snippets/kernel/pretty_inspect.rb
manveru-ramaze-2009.01 lib/ramaze/snippets/kernel/pretty_inspect.rb
manveru-ramaze-2009.04.01 lib/ramaze/snippets/kernel/pretty_inspect.rb
manveru-ramaze-2009.04.08 lib/ramaze/snippets/kernel/pretty_inspect.rb
manveru-ramaze-2009.04.18 lib/ramaze/snippets/kernel/pretty_inspect.rb
manveru-ramaze-2009.04.22 lib/ramaze/snippets/kernel/pretty_inspect.rb
manveru-ramaze-2009.04 lib/ramaze/snippets/kernel/pretty_inspect.rb
manveru-ramaze-2009.05.08 lib/ramaze/snippets/kernel/pretty_inspect.rb
manveru-ramaze-2009.05 lib/ramaze/snippets/kernel/pretty_inspect.rb
manveru-ramaze-2009.06.04 lib/ramaze/snippets/kernel/pretty_inspect.rb
manveru-ramaze-2009.06.12 lib/ramaze/snippets/kernel/pretty_inspect.rb
manveru-ramaze-2009.06 lib/ramaze/snippets/kernel/pretty_inspect.rb