Class: Web2Go::CGIFile
- Inherits:
-
Object
- Object
- Web2Go::CGIFile
- Defined in:
- lib/Web2Go/CGIRequest.rb
Instance Attribute Summary collapse
-
#content ⇒ Object
readonly
Returns the value of attribute content.
-
#filename ⇒ Object
readonly
Returns the value of attribute filename.
Instance Method Summary collapse
-
#initialize(file) ⇒ CGIFile
constructor
A new instance of CGIFile.
Constructor Details
#initialize(file) ⇒ CGIFile
Returns a new instance of CGIFile.
16 17 18 19 20 |
# File 'lib/Web2Go/CGIRequest.rb', line 16 def initialize(file) @file = file @content = file.read @filename = file.original_filename end |
Instance Attribute Details
#content ⇒ Object (readonly)
Returns the value of attribute content.
13 14 15 |
# File 'lib/Web2Go/CGIRequest.rb', line 13 def content @content end |
#filename ⇒ Object (readonly)
Returns the value of attribute filename.
14 15 16 |
# File 'lib/Web2Go/CGIRequest.rb', line 14 def filename @filename end |