module CustomFragmentCache::Logic::ClassMethods

Public Instance Methods

add_fragment_cache(fragment_cache) click to toggle source
# File lib/custom_fragment_cache/logic.rb, line 42
def add_fragment_cache(fragment_cache)
  (@fragment_caches ||= []) << fragment_cache
end
define_cache_fragment(name, opts = {}) click to toggle source
# File lib/custom_fragment_cache/logic.rb, line 50
def define_cache_fragment(name, opts = {})
  fragment_cache = CustomFragmentCache::Fragment.new(name, opts)
  add_fragment_cache(fragment_cache)
end
fragment_caches() click to toggle source
# File lib/custom_fragment_cache/logic.rb, line 46
def fragment_caches
  @fragment_caches || []
end