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.



5
6
7
# File 'lib/camping.rb', line 5

def _p
  @_p
end

Instance Method Details

#[]=(k, v) ⇒ Object



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

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

#_nObject

Cookies that are set at this response



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

def _n;@n||={}end

#_sObject



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

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

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



6
7
# File 'lib/camping.rb', line 6

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