Sha256: b9f6fecc0ef13d5f459526775659153394ab37c0ab649d3a1b8ac902d1f9996f
Contents?: true
Size: 335 Bytes
Versions: 18
Compression:
Stored size: 335 Bytes
Contents
module Slosilo module Adapters class MockAdapter < Hash def initialize @fp = {} end def put_key id, key @fp[key.fingerprint] = id self[id] = key end alias :get_key :[] def get_by_fingerprint fp id = @fp[fp] [self[id], id] end end end end
Version data entries
18 entries across 18 versions & 1 rubygems