Sha256: c1b50b106e1172854cb5044193e8c41d842fa989c28f90e8ebb5e69247f41318
Contents?: true
Size: 500 Bytes
Versions: 4
Compression:
Stored size: 500 Bytes
Contents
module Index module File class Text < Basic def extension :txt end def load raise "Can't load from text file. Use JSON or Marshal." end def dump hash raise "Can't dump to text file. Use JSON or Marshal." end def retrieve ::File.open(cache_path, 'r:binary') do |file| file.each_line do |line| yield line.split ?,, 2 end end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
picky-0.9.4 | lib/picky/index/file/text.rb |
picky-0.9.3 | lib/picky/index/file/text.rb |
picky-0.9.2 | lib/picky/index/file/text.rb |
picky-0.9.1 | lib/picky/index/file/text.rb |