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, #request_parameters, #session
Constructor Details
#initialize(env, input = nil) ⇒ MockCGI
Returns a new instance of MockCGI.
210 211 212 213 214 215 216 |
# File 'lib/action_controller/integration.rb', line 210 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.
208 209 210 |
# File 'lib/action_controller/integration.rb', line 208 def env_table @env_table end |
#stdinput ⇒ Object
Returns the value of attribute stdinput.
208 209 210 |
# File 'lib/action_controller/integration.rb', line 208 def stdinput @stdinput end |
#stdoutput ⇒ Object
Returns the value of attribute stdoutput.
208 209 210 |
# File 'lib/action_controller/integration.rb', line 208 def stdoutput @stdoutput end |