Class: Web2Go::WebrickFile

Inherits:
Object
  • Object
show all
Defined in:
lib/Web2Go/WebrickRequest.rb

Instance Method Summary collapse

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

#contentObject



14
15
16
# File 'lib/Web2Go/WebrickRequest.rb', line 14

def content
    @file.list[0]
end

#filenameObject



10
11
12
# File 'lib/Web2Go/WebrickRequest.rb', line 10

def filename
    @file.filename
end