Class: CGI

Inherits:
Object show all
Extended by:
Html4Tr, HtmlExtension, QueryExtension
Defined in:
test/stub/cgi.rb

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (CGI) initialize(throwaway = nil)

A new instance of CGI



8
9
10
11
12
13
14
# File 'test/stub/cgi.rb', line 8

def initialize throwaway=nil
  extend Html4Tr
  element_init()
  extend HtmlExtension
  extend QueryExtension
  @params = {}
end

Instance Attribute Details

- (Object) params

Returns the value of attribute params



7
8
9
# File 'test/stub/cgi.rb', line 7

def params
  @params
end

Instance Method Details

- (Object) []



18
19
20
# File 'test/stub/cgi.rb', line 18

def []key
  @params[key]  
end

- (Object) []=



21
22
23
# File 'test/stub/cgi.rb', line 21

def []=key, value
  @params[key] = value
end

- (Object) cookies



15
16
17
# File 'test/stub/cgi.rb', line 15

def cookies
  {}
end