Class: Protocol::HTTP::Header::ETags
- Defined in:
- lib/protocol/http/header/etags.rb
Overview
This implementation is not strictly correct according to the RFC-specified format.
Constant Summary
Constants inherited from Split
Instance Method Summary collapse
Methods inherited from Split
Constructor Details
This class inherits a constructor from Protocol::HTTP::Header::Split
Instance Method Details
#match?(etag) ⇒ Boolean
17 18 19 |
# File 'lib/protocol/http/header/etags.rb', line 17 def match?(etag) wildcard? || self.include?(etag) end |
#wildcard? ⇒ Boolean
13 14 15 |
# File 'lib/protocol/http/header/etags.rb', line 13 def wildcard? self.include?('*') end |