Sha256: 35d8680101fa6670913fa9d038ceb5ee95a794ec7758888bad8c5a656543515b

Contents?: true

Size: 395 Bytes

Versions: 12

Compression:

Stored size: 395 Bytes

Contents

module Index
  
  module File
    
    class Marshal < Basic
      
      def extension
        :dump
      end
      def load
        ::Marshal.load ::File.open(cache_path, 'r:binary')
      end
      def dump hash
        hash.dump_marshalled cache_path
      end
      def retrieve
        raise "Can't retrieve from marshalled file. Use text file."
      end
      
    end
    
  end
  
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
picky-0.11.2 lib/picky/index/file/marshal.rb
picky-0.11.1 lib/picky/index/file/marshal.rb
picky-0.11.0 lib/picky/index/file/marshal.rb
picky-0.10.5 lib/picky/index/file/marshal.rb
picky-0.10.4 lib/picky/index/file/marshal.rb
picky-0.10.2 lib/picky/index/file/marshal.rb
picky-0.10.1 lib/picky/index/file/marshal.rb
picky-0.10.0 lib/picky/index/file/marshal.rb
picky-0.9.4 lib/picky/index/file/marshal.rb
picky-0.9.3 lib/picky/index/file/marshal.rb
picky-0.9.2 lib/picky/index/file/marshal.rb
picky-0.9.1 lib/picky/index/file/marshal.rb