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, #request_parameters, #session

Constructor Details

#initialize(env, input = nil) ⇒ MockCGI

Returns a new instance of MockCGI.



200
201
202
203
204
205
206
# File 'lib/action_controller/integration.rb', line 200

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.



198
199
200
# File 'lib/action_controller/integration.rb', line 198

def env_table
  @env_table
end

#stdinputObject

Returns the value of attribute stdinput.



198
199
200
# File 'lib/action_controller/integration.rb', line 198

def stdinput
  @stdinput
end

#stdoutputObject

Returns the value of attribute stdoutput.



198
199
200
# File 'lib/action_controller/integration.rb', line 198

def stdoutput
  @stdoutput
end