Module: CacheShoe::ClassMethods
- Defined in:
- lib/cache_shoe.rb
Defined Under Namespace
Modules: Helpers
Instance Method Summary collapse
Instance Method Details
#cache_method(method_to_cache, clear_on: {}) ⇒ Object
153 154 155 156 157 158 159 160 |
# File 'lib/cache_shoe.rb', line 153 def cache_method(method_to_cache, clear_on: {}) dyn_module = Module.new do extend Helpers wrap_the_method_to_cache(method_to_cache) create_cache_clear_wrapper_methods(method_to_cache, clear_on) end prepend(dyn_module) end |