Module: Seabright::Dumping::ClassMethods
- Defined in:
- lib/redis_object/experimental/dumping.rb
Instance Method Summary collapse
Instance Method Details
#dump_all(dump_format = :hash) ⇒ Object
124 125 126 127 128 129 130 131 |
# File 'lib/redis_object/experimental/dumping.rb', line 124 def dump_all(dump_format=:hash) out = {} out[self.name] = {} out[self.name][:objects] = all.map do |obj| obj.full_hash_dump end Dumping.format_dump out, dump_format end |