module Card::View::Cache::ClassMethods
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cache-related Card::View
class methods
Public Instance Methods
cache()
click to toggle source
# File lib/card/view/cache.rb, line 278 def cache Card::Cache[Card::View] end
caching(voo) { || ... }
click to toggle source
# File lib/card/view/cache.rb, line 286 def caching voo old_caching = @caching @caching = voo yield ensure @caching = old_caching end
caching?()
click to toggle source
# File lib/card/view/cache.rb, line 282 def caching? !@caching.nil? end