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
34 35 36 |
# File 'lib/protocol/http/header/etags.rb', line 34 def match?(etag) wildcard? || self.include?(etag) end |
#wildcard? ⇒ Boolean
30 31 32 |
# File 'lib/protocol/http/header/etags.rb', line 30 def wildcard? self.include?('*') end |