Class: Camping::Cookies

Inherits:
H show all
Defined in:
lib/camping.rb,
lib/camping-unabridged.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from H

#method_missing

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Camping::H

Instance Attribute Details

#_pObject

Returns the value of attribute _p.



8
9
10
# File 'lib/camping.rb', line 8

def _p
  @_p
end

Instance Method Details

#[]=(k, v) ⇒ Object



10
# File 'lib/camping.rb', line 10

def []=(k,v)set k,v,v.is_a?(Hash)?v:{} end

#_nObject

Cookies that are set at this response



95
# File 'lib/camping-unabridged.rb', line 95

def _n;@n||={}end

#_sObject



9
# File 'lib/camping.rb', line 9

def []=(k,v)set k,v,v.is_a?(Hash)?v:{} end

#set(k, v, o = {}) ⇒ Object



9
10
# File 'lib/camping.rb', line 9

def set k,v,o={};_s(j=k.to_s,v);_n[j] =
{:value=>v,:path=>_p}.update o;end