Class: Web2Go::CGIFile

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#contentObject (readonly)

Returns the value of attribute content


13
14
15
# File 'lib/Web2Go/CGIRequest.rb', line 13

def content
  @content
end

#filenameObject (readonly)

Returns the value of attribute filename


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

def filename
  @filename
end