Module: Card::View::Cache::ClassMethods
- Included in:
- Card::View
- Defined in:
- lib/card/view/cache.rb
Overview
cache-related Card::View class methods
Instance Method Summary collapse
Instance Method Details
#cache ⇒ Object
109 110 111 |
# File 'lib/card/view/cache.rb', line 109 def cache Card::Cache[Card::View] end |
#caching(voo) ⇒ Object
117 118 119 120 121 122 123 |
# File 'lib/card/view/cache.rb', line 117 def caching voo old_caching = @caching @caching = voo yield ensure @caching = old_caching end |
#caching? ⇒ Boolean
113 114 115 |
# File 'lib/card/view/cache.rb', line 113 def caching? !@caching.nil? end |