Sha256: fd7f637ae480eeb965bd287dcbed46883586cc478843733ff93ca01d160d55cc
Contents?: true
Size: 256 Bytes
Versions: 96
Compression:
Stored size: 256 Bytes
Contents
class WritingCache def flush File.open(path, "w") do |file| file.write(object_id.to_s) end end def written? IO.read(path) == object_id.to_s end private def path File.join(PROJECT_ROOT, 'tmp', 'written_cache') end end
Version data entries
96 entries across 96 versions & 2 rubygems