Class: Protocol::HTTP::Header::ETags

Inherits:
Split
  • Object
show all
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

Split::COMMA

Instance Method Summary collapse

Methods inherited from Split

#<<, #initialize, #to_s

Constructor Details

This class inherits a constructor from Protocol::HTTP::Header::Split

Instance Method Details

#match?(etag) ⇒ Boolean

Returns:

  • (Boolean)

34
35
36
# File 'lib/protocol/http/header/etags.rb', line 34

def match?(etag)
	wildcard? || self.include?(etag)
end

#wildcard?Boolean

Returns:

  • (Boolean)

30
31
32
# File 'lib/protocol/http/header/etags.rb', line 30

def wildcard?
	self.include?('*')
end