Class: ActionController::Integration::Session::MockCGI
- Defined in:
- lib/action_controller/integration.rb
Overview
:nodoc:
Instance Attribute Summary collapse
-
#env_table ⇒ Object
Returns the value of attribute env_table.
-
#stdinput ⇒ Object
Returns the value of attribute stdinput.
-
#stdoutput ⇒ Object
Returns the value of attribute stdoutput.
Instance Method Summary collapse
-
#initialize(env, input = nil) ⇒ MockCGI
constructor
A new instance of MockCGI.
Methods inherited from CGI
escapeHTML, escapeHTML_fail_on_nil, #parameters, #query_parameters, #redirect, #request_parameters, #session
Constructor Details
#initialize(env, input = nil) ⇒ MockCGI
Returns a new instance of MockCGI.
181 182 183 184 185 186 187 |
# File 'lib/action_controller/integration.rb', line 181 def initialize(env, input=nil) self.env_table = env self.stdinput = StringIO.new(input || "") self.stdoutput = StringIO.new super() end |
Instance Attribute Details
#env_table ⇒ Object
Returns the value of attribute env_table.
179 180 181 |
# File 'lib/action_controller/integration.rb', line 179 def env_table @env_table end |
#stdinput ⇒ Object
Returns the value of attribute stdinput.
179 180 181 |
# File 'lib/action_controller/integration.rb', line 179 def stdinput @stdinput end |
#stdoutput ⇒ Object
Returns the value of attribute stdoutput.
179 180 181 |
# File 'lib/action_controller/integration.rb', line 179 def stdoutput @stdoutput end |