Class: Refinery::Pages::Caching
- Inherits:
-
Object
- Object
- Refinery::Pages::Caching
- Defined in:
- lib/refinery/pages/caching.rb
Instance Attribute Summary collapse
-
#cache_dir ⇒ Object
readonly
Returns the value of attribute cache_dir.
Instance Method Summary collapse
- #expire! ⇒ Object
-
#initialize(cache_dir = nil) ⇒ Caching
constructor
A new instance of Caching.
Constructor Details
#initialize(cache_dir = nil) ⇒ Caching
Returns a new instance of Caching.
7 8 9 |
# File 'lib/refinery/pages/caching.rb', line 7 def initialize(cache_dir = nil) @cache_dir = cache_dir end |
Instance Attribute Details
#cache_dir ⇒ Object (readonly)
Returns the value of attribute cache_dir.
5 6 7 |
# File 'lib/refinery/pages/caching.rb', line 5 def cache_dir @cache_dir end |
Instance Method Details
#expire! ⇒ Object
11 12 13 14 |
# File 'lib/refinery/pages/caching.rb', line 11 def expire! clear_caching! delete_static_files! end |