Module: Shaf::Vary

Defined in:
lib/shaf/helpers/vary.rb

Instance Method Summary collapse

Instance Method Details

#vary(*varying) ⇒ Object



3
4
5
6
# File 'lib/shaf/helpers/vary.rb', line 3

def vary(*varying)
  current = headers['Vary']
  headers('Vary' => [current, *varying].compact.join(','))
end