Class: ActionController::TestRequest::GetTextMockCGI
- Inherits:
-
CGI
- Object
- CGI
- ActionController::TestRequest::GetTextMockCGI
- Defined in:
- lib/gettext/rails.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) ⇒ GetTextMockCGI
constructor
A new instance of GetTextMockCGI.
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_table ⇒ Object
Returns the value of attribute env_table.
245 246 247 |
# File 'lib/gettext/rails.rb', line 245 def env_table @env_table end |
#stdinput ⇒ Object
Returns the value of attribute stdinput.
245 246 247 |
# File 'lib/gettext/rails.rb', line 245 def stdinput @stdinput end |
#stdoutput ⇒ Object
Returns the value of attribute stdoutput.
245 246 247 |
# File 'lib/gettext/rails.rb', line 245 def stdoutput @stdoutput end |