Class: Xenon::Headers::CacheControl
- Inherits:
-
ListHeader
- Object
- Xenon::Headers::CacheControl
- Defined in:
- lib/xenon/headers/cache_control.rb
Overview
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(*directives) ⇒ CacheControl
constructor
A new instance of CacheControl.
Constructor Details
#initialize(*directives) ⇒ CacheControl
Returns a new instance of CacheControl.
26 27 28 |
# File 'lib/xenon/headers/cache_control.rb', line 26 def initialize(*directives) super(directives) end |
Class Method Details
.parse(s) ⇒ Object
32 33 34 35 |
# File 'lib/xenon/headers/cache_control.rb', line 32 def self.parse(s) tree = Parsers::CacheControlHeader.new.parse(s) Parsers::CacheControlHeaderTransform.new.apply(tree) end |