class ForgetMeNot::HashCache
Public Instance Methods
fetch(key) { || ... }
click to toggle source
# File lib/forget-me-not/hash_cache.rb, line 3 def fetch(key) data[key] ||= yield end
Private Instance Methods
data()
click to toggle source
# File lib/forget-me-not/hash_cache.rb, line 8 def data @data ||= {} end