Module: MethodCacheable
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/method_cacheable.rb
Overview
include MethodCacheable
Defined Under Namespace
Modules: ClassMethods Classes: MethodCache
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.config {|_self| ... } ⇒ Object
43 44 45 |
# File 'lib/method_cacheable.rb', line 43 def self.config yield self end |
Instance Method Details
#cache ⇒ Object #cache(options = {}) ⇒ Object #cache(cache_operation = :fetch) ⇒ Object #cache(cache_operation = :fetch, options = {}) ⇒ Object
73 74 75 |
# File 'lib/method_cacheable.rb', line 73 def cache(*args) MethodCache.new(self, *args) end |