Sha256: c9c0a0db9c5305508e39f061b1b82be5cbdfdb5ec54783f781fe5c57344042c1
Contents?: true
Size: 369 Bytes
Versions: 1
Compression:
Stored size: 369 Bytes
Contents
# encoding: UTF-8 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mongo_mapper_ign-0.7.8 | lib/mongo_mapper/plugins/inspect.rb |