Module: Caching
- Defined in:
- lib/caching.rb,
lib/caching/proxy.rb,
lib/caching/storage.rb,
lib/caching/version.rb
Defined Under Namespace
Constant Summary collapse
- VERSION =
"0.0.1"
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
Instance Method Details
#cache(*methods) ⇒ Object
13 14 15 |
# File 'lib/caching.rb', line 13 def cache(*methods) @cached_methods = (@cached_methods ||= []) | methods.map(&:to_sym).uniq end |