Class: N::App::Cookie
- Inherits:
-
CGI::Cookie
- Object
- CGI::Cookie
- N::App::Cookie
- Defined in:
- lib/n/app/cookie.rb
Overview
Cookie
Design:
Ruby’s default cgi library implements the functionality, so we reuse it here!
The http request contains only key/values pairs so we dont keep a full object.
Todo:
-
switch to libapreq!
Instance Method Summary collapse
-
#initialize(name, *value) ⇒ Cookie
constructor
Override default implementation.
Constructor Details
#initialize(name, *value) ⇒ Cookie
Override default implementation
55 56 57 58 59 60 61 62 |
# File 'lib/n/app/cookie.rb', line 55 def initialize(name, *value) super # this is a temporal fix! We should switch to libapreq, # or a custom implementation anyway, because cgi.rb # sucks. @path = "/" end |