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.
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 |
#_n ⇒ Object
Cookies that are set at this response
95 |
# File 'lib/camping-unabridged.rb', line 95 def _n;@n||={}end |
#_s ⇒ Object
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 |