class Camping::Cookies

Attributes

_p[RW]

Public Instance Methods

[]=(k, v) click to toggle source
# File lib/camping-unabridged.rb, line 100
def []=(k, v)
  set k, v, v.is_a?(Hash) ? v : {}
end
Also aliased as: _s
_n() click to toggle source

Cookies that are set at this response

# File lib/camping-unabridged.rb, line 91
def _n; @n ||= {} end
_s(k, v)
Alias for: []=
set(k, v, o = {}) click to toggle source
# File lib/camping-unabridged.rb, line 95
def set(k, v, o = {})
  _s(j=k.to_s, v)
  _n[j] = {:value => v, :path => _p}.update(o)
end