Class: ForgetMeNot::HashCache
- Inherits:
-
Object
- Object
- ForgetMeNot::HashCache
- Defined in:
- lib/forget-me-not/hash_cache.rb
Instance Method Summary collapse
Instance Method Details
#fetch(key) ⇒ Object
3 4 5 |
# File 'lib/forget-me-not/hash_cache.rb', line 3 def fetch(key) data[key] ||= yield end |