Sha256: c21bef75d28437df6f27a5ae57ca6cde9bf948fd8d12fbc659593d8c3911b924

Contents?: true

Size: 233 Bytes

Versions: 44

Compression:

Stored size: 233 Bytes

Contents

module Ramaze
  module CoreExtensions

    # Extensions for Object
    module Object

      # Returns the string that #pretty_inspect would yield

      def pretty s = ''
        PP.pp(self, s)
        s
      end
    end

  end
end

Version data entries

44 entries across 44 versions & 5 rubygems

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