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.



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_tableObject

Returns the value of attribute env_table.



208
209
210
# File 'lib/action_controller/integration.rb', line 208

def env_table
  @env_table
end

#stdinputObject

Returns the value of attribute stdinput.



208
209
210
# File 'lib/action_controller/integration.rb', line 208

def stdinput
  @stdinput
end

#stdoutputObject

Returns the value of attribute stdoutput.



208
209
210
# File 'lib/action_controller/integration.rb', line 208

def stdoutput
  @stdoutput
end