Sha256: b152216cf4c7c5f7bb21326b68bc82f6014893291314d09cfae327b00e88edc9
Contents?: true
Size: 302 Bytes
Versions: 20
Compression:
Stored size: 302 Bytes
Contents
module Ddr::Models class Cache < Hash def get(key) self[key] end def put(key, value) self[key] = value end def with(options, &block) merge!(options) block_result = yield reject! { |k, v| options.include?(k) } block_result end end end
Version data entries
20 entries across 20 versions & 1 rubygems