Sha256: 33ad949635098e96ef29730f445dde535fdf59aa9c8342b2e99fd9833d2f4b6a
Contents?: true
Size: 310 Bytes
Versions: 4
Compression:
Stored size: 310 Bytes
Contents
module Tickwork class FakeStore def initialize @data_store = {} end def read(key) @data_store[key] end def write(key, value) @data_store[key] = value end # not part of the interface but used for testing def size @data_store.size end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
tickwork-0.9.2 | test/data_stores/fake_store.rb |
tickwork-0.9.1 | test/data_stores/fake_store.rb |
tickwork-0.9.0 | test/data_stores/fake_store.rb |
tickwork-0.1.0 | test/data_stores/fake_store.rb |