Sha256: a3ba974da1fc91209689f2743435028175527e0b9354583b28de0f6cfc8dcc08

Contents?: true

Size: 337 Bytes

Versions: 61

Compression:

Stored size: 337 Bytes

Contents

module MongoMapper
  module Plugins
    module Inspect
      module InstanceMethods
        def inspect
          attributes_as_nice_string = key_names.collect do |name|
            "#{name}: #{self[name].inspect}"
          end.join(", ")
          "#<#{self.class} #{attributes_as_nice_string}>"
        end
      end
    end
  end
end

Version data entries

61 entries across 61 versions & 8 rubygems

Version Path
mongo_mapper-unstable-2010.1.12 lib/mongo_mapper/plugins/inspect.rb