Module: Webmachine::Resource::EntityTags

Included in:
Webmachine::Resource
Defined in:
lib/webmachine/resource/entity_tags.rb

Instance Method Summary collapse

Instance Method Details

#weak_etag(str) ⇒ WeakETag

Marks a generated entity tag (etag) as “weak”, meaning that other representations of the resource may be semantically equivalent.

Parameters:

  • str (String)

    the ETag to mark as weak

Returns:

  • (WeakETag)

    a weak version of the given ETag string

See Also:



12
13
14
# File 'lib/webmachine/resource/entity_tags.rb', line 12

def weak_etag(str)
  WeakETag.new(str)
end