Class: Camping::Cookies
- Defined in:
- lib/camping.rb,
lib/camping-unabridged.rb
Instance Attribute Summary collapse
-
#_p ⇒ Object
Returns the value of attribute _p.
Instance Method Summary collapse
- #[]=(k, v) ⇒ Object
-
#_n ⇒ Object
Cookies that are set at this response.
- #_s ⇒ Object
- #set(k, v, o = {}) ⇒ Object
Methods inherited from H
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Camping::H
Instance Attribute Details
#_p ⇒ Object
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 |
#_n ⇒ Object
Cookies that are set at this response
91 |
# File 'lib/camping-unabridged.rb', line 91 def _n;@n||={}end |
#_s ⇒ Object
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 |