Class: Webmachine::WeakETag
Overview
A Weak Entity Tag, which can be used to compare entities which are semantically equivalent, but do not have the same byte-content. A WeakETag is equivalent to another entity tag if the non-weak portions are equivalent. It is also equivalent to a String which represents the equivalent strong or weak ETag.
Constant Summary
Constants inherited from ETag
Constants included from QuotedString
QuotedString::QS_ANCHORED, QuotedString::QUOTED_STRING
Instance Attribute Summary
Attributes inherited from ETag
Instance Method Summary collapse
-
#to_s ⇒ Object
Converts the WeakETag to a String for use in a header.
Methods inherited from ETag
Methods included from QuotedString
#escape_quotes, #unescape_quotes
Constructor Details
This class inherits a constructor from Webmachine::ETag
Instance Method Details
#to_s ⇒ Object
Converts the WeakETag to a String for use in a header.
51 52 53 |
# File 'lib/webmachine/etags.rb', line 51 def to_s "W/#{super}" end |