Module: Eigenjoy::MethodCache::ModuleAdded
- Defined in:
- lib/method_cache.rb
Instance Method Summary collapse
Instance Method Details
#extended(mod) ⇒ Object
215 216 217 218 219 220 |
# File 'lib/method_cache.rb', line 215 def extended(mod) mod.extend(Eigenjoy::MethodCache) cached_module_methods.each do |method_name, proxy| mod.cache_class_method(method_name, proxy) end end |
#included(mod) ⇒ Object
222 223 224 225 226 227 |
# File 'lib/method_cache.rb', line 222 def included(mod) mod.extend(Eigenjoy::MethodCache) cached_module_methods.each do |method_name, proxy| mod.cache_method(method_name, proxy) end end |