Class: ActionController::Integration::Session::MockCGI

Inherits:
CGI
  • Object
show all
Defined in:
lib/action_controller/integration.rb

Overview

:nodoc:

Instance Attribute Summary collapse

Instance Method Summary collapse

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.


175
176
177
178
179
180
181
# File 'lib/action_controller/integration.rb', line 175

def initialize(env, input=nil)
  self.env_table = env
  self.stdinput = StringIO.new(input || "")
  self.stdoutput = StringIO.new

  super()
end

Instance Attribute Details

#env_tableObject

Returns the value of attribute env_table


173
174
175
# File 'lib/action_controller/integration.rb', line 173

def env_table
  @env_table
end

#stdinputObject

Returns the value of attribute stdinput


173
174
175
# File 'lib/action_controller/integration.rb', line 173

def stdinput
  @stdinput
end

#stdoutputObject

Returns the value of attribute stdoutput


173
174
175
# File 'lib/action_controller/integration.rb', line 173

def stdoutput
  @stdoutput
end