Class: ActionController::CGIWrapper

Inherits:
CGI show all
Defined in:
lib/action_controller/rack_process.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from CGI

escapeHTML, escapeHTML_fail_on_nil

Methods included from ActionController::CgiExt::Stdinput

included, #initialize_with_stdinput

Constructor Details

#initialize(request, *args) ⇒ CGIWrapper

Returns a new instance of CGIWrapper.



268
269
270
271
272
273
274
# File 'lib/action_controller/rack_process.rb', line 268

def initialize(request, *args)
  @request  = request
  @args     = *args
  @input    = request.body

  super *args
end

Instance Attribute Details

#output_cookiesObject (readonly)

Returns the value of attribute output_cookies.



266
267
268
# File 'lib/action_controller/rack_process.rb', line 266

def output_cookies
  @output_cookies
end

Instance Method Details

#argsObject

Used to wrap the normal args variable used inside CGI.



289
290
291
# File 'lib/action_controller/rack_process.rb', line 289

def args
  @args
end

#cookiesObject



280
281
282
# File 'lib/action_controller/rack_process.rb', line 280

def cookies
  @request.cookies
end

#env_tableObject

Used to wrap the normal env_table variable used inside CGI.



294
295
296
# File 'lib/action_controller/rack_process.rb', line 294

def env_table
  @request.env
end

#paramsObject



276
277
278
# File 'lib/action_controller/rack_process.rb', line 276

def params
  @params ||= @request.params
end

#query_stringObject



284
285
286
# File 'lib/action_controller/rack_process.rb', line 284

def query_string
  @request.query_string
end

#stdinputObject

Used to wrap the normal stdinput variable used inside CGI.



299
300
301
# File 'lib/action_controller/rack_process.rb', line 299

def stdinput
  @input
end