Sha256: e6eccb91c7b28e8bc856ba2da5410cfdeff2fc0d30ce5bda45eb1a98c34c2994
Contents?: true
Size: 337 Bytes
Versions: 4
Compression:
Stored size: 337 Bytes
Contents
# Extensions for the Hash. # class Hash # Dumps binary self to the path given. # # TODO Still used? If yes, spec! # def dump_to path File.open(path, 'w:binary') { |out_file| Marshal.dump self, out_file } end # Use yajl's encoding. # def to_json options = {} Yajl::Encoder.encode self, options end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
picky-0.2.3 | lib/picky/extensions/hash.rb |
picky-0.2.2 | lib/picky/extensions/hash.rb |
picky-0.2.1 | lib/picky/extensions/hash.rb |
picky-0.2.0 | lib/picky/extensions/hash.rb |