Class: Web2Go::WebrickFile
- Inherits:
-
Object
- Object
- Web2Go::WebrickFile
- Defined in:
- lib/Web2Go/WebrickRequest.rb
Instance Method Summary collapse
- #content ⇒ Object
- #filename ⇒ Object
-
#initialize(file) ⇒ WebrickFile
constructor
A new instance of WebrickFile.
Constructor Details
#initialize(file) ⇒ WebrickFile
Returns a new instance of WebrickFile.
6 7 8 |
# File 'lib/Web2Go/WebrickRequest.rb', line 6 def initialize(file) @file = file end |
Instance Method Details
#content ⇒ Object
14 15 16 |
# File 'lib/Web2Go/WebrickRequest.rb', line 14 def content @file.list[0] end |
#filename ⇒ Object
10 11 12 |
# File 'lib/Web2Go/WebrickRequest.rb', line 10 def filename @file.filename end |