Sha256: be84f6be9430c8b6c2c428ce3c3080129b44940cc43ed3e7aebac4bdbb6e8213
Contents?: true
Size: 728 Bytes
Versions: 5
Compression:
Stored size: 728 Bytes
Contents
module Picky module Backend module File # Index data in the Ruby Marshal format. # class Marshal < Basic # Uses the extension "dump". # def extension :dump end # Loads the index hash from marshal format. # def load ::Marshal.load ::File.open(cache_path, 'r:binary') end # Dumps the index hash in marshal format. # def dump hash hash.dump_marshalled cache_path end # A marshal file does not provide retrieve functionality. # def retrieve raise "Can't retrieve from marshalled file. Use text file." end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems