Class: ActionController::CGIWrapper
- Defined in:
- lib/action_controller/rack_process.rb
Instance Attribute Summary collapse
-
#output_cookies ⇒ Object
readonly
Returns the value of attribute output_cookies.
Instance Method Summary collapse
-
#args ⇒ Object
Used to wrap the normal args variable used inside CGI.
- #cookies ⇒ Object
-
#env_table ⇒ Object
Used to wrap the normal env_table variable used inside CGI.
-
#initialize(request, *args) ⇒ CGIWrapper
constructor
A new instance of CGIWrapper.
- #params ⇒ Object
- #query_string ⇒ Object
-
#stdinput ⇒ Object
Used to wrap the normal stdinput variable used inside CGI.
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_cookies ⇒ Object (readonly)
Returns the value of attribute output_cookies.
266 267 268 |
# File 'lib/action_controller/rack_process.rb', line 266 def @output_cookies end |
Instance Method Details
#args ⇒ Object
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 |
#cookies ⇒ Object
280 281 282 |
# File 'lib/action_controller/rack_process.rb', line 280 def @request. end |
#env_table ⇒ Object
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 |
#params ⇒ Object
276 277 278 |
# File 'lib/action_controller/rack_process.rb', line 276 def params @params ||= @request.params end |
#query_string ⇒ Object
284 285 286 |
# File 'lib/action_controller/rack_process.rb', line 284 def query_string @request.query_string end |
#stdinput ⇒ Object
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 |