Class: Webmachine::WeakETag

Inherits:
ETag
  • Object
show all
Defined in:
lib/webmachine/etags.rb

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

ETag::WEAK_ETAG

Constants included from QuotedString

QuotedString::QS_ANCHORED, QuotedString::QUOTED_STRING

Instance Attribute Summary

Attributes inherited from ETag

#etag

Instance Method Summary collapse

Methods inherited from ETag

#==, #initialize, new

Methods included from QuotedString

#escape_quotes, #unescape_quotes

Constructor Details

This class inherits a constructor from Webmachine::ETag

Instance Method Details

#to_sObject

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