Sha256: 70dfc2a524713832797f25db24d2f890e4a7624804c69965f86601fc785cdb24

Contents?: true

Size: 264 Bytes

Versions: 4

Compression:

Stored size: 264 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 # Object
  end # CoreExtensions
end # Ramaze

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ramaze-2012.04.14 lib/ramaze/snippets/object/pretty.rb
ramaze-2012.03.07 lib/ramaze/snippets/object/pretty.rb
ramaze-2011.12.28 lib/ramaze/snippets/object/pretty.rb
ramaze-2011.10.23 lib/ramaze/snippets/object/pretty.rb