Sha256: 9feb30ca0a27769717e689487881bcd77072d0e171c99d93317fa2e69fece8cf
Contents?: true
Size: 408 Bytes
Versions: 1
Compression:
Stored size: 408 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
picky-0.9.1 | lib/picky/index/file/json.rb |