Class: ActionController::TestRequest::GetTextMockCGI

Inherits:
CGI
  • Object
show all
Defined in:
lib/gettext/rails.rb

Overview

:nodoc:

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(env, input = nil) ⇒ GetTextMockCGI

Returns a new instance of GetTextMockCGI.



247
248
249
250
251
252
253
# File 'lib/gettext/rails.rb', line 247

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.



245
246
247
# File 'lib/gettext/rails.rb', line 245

def env_table
  @env_table
end

#stdinputObject

Returns the value of attribute stdinput.



245
246
247
# File 'lib/gettext/rails.rb', line 245

def stdinput
  @stdinput
end

#stdoutputObject

Returns the value of attribute stdoutput.



245
246
247
# File 'lib/gettext/rails.rb', line 245

def stdoutput
  @stdoutput
end