Sha256: 8c60873e8fd43caacc3235ad666bb9f3aa2fd09f1d160665e95bf32d5404ae11
Contents?: true
Size: 388 Bytes
Versions: 1
Compression:
Stored size: 388 Bytes
Contents
# frozen_string_literal: true require 'rubygems' require 'bundler' Bundler.require(:default, :development, :test) class HashCache < Hash def exist?(key) key?(key) end def fetch(key, _options = {}) return self[key] if key?(key) self[key] = yield end def read(key) self[key] end def write(key, value) self[key] = value end end require 'mocha/api'
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
active_remote-cached-1.1.1 | spec/spec_helper.rb |