Module: Lotus::Action::Cache::CacheControl::ClassMethods Private
- Defined in:
- lib/lotus/action/cache/cache_control.rb
Overview
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Instance Method Summary collapse
- #cache_control(*values) ⇒ Object private
- #cache_control_directives ⇒ Object private
Instance Method Details
#cache_control(*values) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
24 25 26 |
# File 'lib/lotus/action/cache/cache_control.rb', line 24 def cache_control(*values) @cache_control_directives ||= Directives.new(*values) end |
#cache_control_directives ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
28 29 30 31 32 33 34 |
# File 'lib/lotus/action/cache/cache_control.rb', line 28 def cache_control_directives @cache_control_directives || Object.new.tap do |null_object| def null_object.headers Hash.new end end end |