Class: CacheKeeper::Store
- Inherits:
-
Array
- Object
- Array
- CacheKeeper::Store
- Defined in:
- lib/cache_keeper/store.rb
Instance Method Summary collapse
Instance Method Details
#autorefreshed ⇒ Object
9 10 11 12 13 |
# File 'lib/cache_keeper/store.rb', line 9 def autorefreshed select do |cached_method| cached_method.autorefresh_block.present? end end |
#find_by(klass, method_name) ⇒ Object
3 4 5 6 7 |
# File 'lib/cache_keeper/store.rb', line 3 def find_by(klass, method_name) find do |cached_method| cached_method.klass == klass && cached_method.method_name == method_name end end |