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.


262
263
264
265
266
267
268
# File 'lib/action_controller/rack_process.rb', line 262

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


260
261
262
# File 'lib/action_controller/rack_process.rb', line 260

def output_cookies
  @output_cookies
end

Instance Method Details

#argsObject

Used to wrap the normal args variable used inside CGI.


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

def args
  @args
end

#cookiesObject


274
275
276
# File 'lib/action_controller/rack_process.rb', line 274

def cookies
  @request.cookies
end

#env_tableObject

Used to wrap the normal env_table variable used inside CGI.


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

def env_table
  @request.env
end

#paramsObject


270
271
272
# File 'lib/action_controller/rack_process.rb', line 270

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

#query_stringObject


278
279
280
# File 'lib/action_controller/rack_process.rb', line 278

def query_string
  @request.query_string
end

#stdinputObject

Used to wrap the normal stdinput variable used inside CGI.


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

def stdinput
  @input
end