module Erector::Caching::ClassMethods

Public Instance Methods

cachable(value = true) click to toggle source
# File lib/erector/caching.rb, line 47
def cachable(value = true)
  @cachable = value
end
cachable?() click to toggle source
# File lib/erector/caching.rb, line 51
def cachable?
  if @cachable.nil?
    superclass.respond_to?(:cachable?) && superclass.cachable?
  else
    @cachable
  end
end
cache() click to toggle source
# File lib/erector/caching.rb, line 59
def cache
  @@cache ||= nil
end
cache=(c) click to toggle source
# File lib/erector/caching.rb, line 63
def cache=(c)
  @@cache = c
end
cacheable(value = true) click to toggle source
# File lib/erector/caching.rb, line 43
def cacheable(value = true)
  @cachable = value
end