Class: SCGI::CGIFixed
- Inherits:
-
CGI
- Object
- CGI
- SCGI::CGIFixed
- Defined in:
- lib/scgi.rb
Overview
Modifies CGI so that we can use it. Main thing it does is expose the stdinput and stdoutput so SCGI::Processor can connect them to the right sources. It also exposes the env_table so that SCGI::Processor and hook the SCGI parameters into the environment table.
Instance Attribute Summary collapse
-
#args ⇒ Object
readonly
Returns the value of attribute args.
-
#env_table ⇒ Object
readonly
Returns the value of attribute env_table.
Instance Method Summary collapse
-
#initialize(params, data, out, *args) ⇒ CGIFixed
constructor
A new instance of CGIFixed.
- #stdinput ⇒ Object
- #stdoutput ⇒ Object
Constructor Details
#initialize(params, data, out, *args) ⇒ CGIFixed
Returns a new instance of CGIFixed.
58 59 60 61 62 63 64 |
# File 'lib/scgi.rb', line 58 def initialize(params, data, out, *args) @env_table = params @args = *args @input = StringIO.new(data) @out = out super(*args) end |
Instance Attribute Details
#args ⇒ Object (readonly)
Returns the value of attribute args.
56 57 58 |
# File 'lib/scgi.rb', line 56 def args @args end |
#env_table ⇒ Object (readonly)
Returns the value of attribute env_table.
56 57 58 |
# File 'lib/scgi.rb', line 56 def env_table @env_table end |
Instance Method Details
#stdinput ⇒ Object
66 67 68 |
# File 'lib/scgi.rb', line 66 def stdinput @input end |
#stdoutput ⇒ Object
70 71 72 |
# File 'lib/scgi.rb', line 70 def stdoutput @out end |