Sha256: 90ad06d48cc06a49ea4a5d51d4feab9562432a19725b4781188ac1798c201b77

Contents?: true

Size: 405 Bytes

Versions: 10

Compression:

Stored size: 405 Bytes

Contents

module Index
  
  module File
    
    class JSON < Basic
      
      def extension
        :json
      end
      def load
        Yajl::Parser.parse ::File.open(cache_path, 'r'), symbolize_keys: true
      end
      def dump hash
        hash.dump_json cache_path
      end
      def retrieve
        raise "Can't retrieve from marshalled file. Use text file."
      end
      
    end
    
  end
  
end

Version data entries

10 entries across 10 versions & 1 rubygems

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