Method: Nitro::Cookie#initialize

Defined in:
lib/nitro/cgi/cookie.rb

#initialize(name = nil, value = nil, expires = nil) ⇒ Cookie

Returns a new instance of Cookie.



11
12
13
14
15
16
17
18
19
# File 'lib/nitro/cgi/cookie.rb', line 11

def initialize(name = nil, value = nil, expires = nil)
  @name = name
  @value = value
  self.expires = expires
  @version = 0    # Netscape Cookie
  @path = '/'      # gmosx: KEEP this!
  @domain = @secure = @comment = @max_age = nil
  @comment_url = @discard = @port = nil
end