Sha256: 2105a39d361be96f70aa00aa47689f1d12b4447de47186e4abc11bcdf2cdd936
Contents?: true
Size: 478 Bytes
Versions: 1
Compression:
Stored size: 478 Bytes
Contents
module ModuleHelpers def valid_module Module.new do def read(key) decode(client[key_for(key)]) end def write(key, value) client[key_for(key)] = encode(value) end def delete(key) client.delete(key_for(key)) end def clear client.clear end end end def handle_failed_connections yield rescue => e puts e.inspect puts e.message unless e.message.nil? pending end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
adapter-0.5 | spec/support/module_helpers.rb |