Parent

Class Index [+]

Quicksearch

ActionDispatch::Http::UploadedFile

Attributes

original_filename[RW]
content_type[RW]
tempfile[RW]
headers[RW]

Public Class Methods

new(hash) click to toggle source
    # File lib/action_dispatch/http/upload.rb, line 8
 8:       def initialize(hash)
 9:         @original_filename = hash[:filename]
10:         @content_type      = hash[:type]
11:         @headers           = hash[:head]
12:         @tempfile          = hash[:tempfile]
13:         raise(ArgumentError, ':tempfile is required') unless @tempfile
14:       end

Public Instance Methods

read(*args) click to toggle source
    # File lib/action_dispatch/http/upload.rb, line 16
16:       def read(*args)
17:         @tempfile.read(*args)
18:       end
rewind() click to toggle source
    # File lib/action_dispatch/http/upload.rb, line 20
20:       def rewind
21:         @tempfile.rewind
22:       end
size() click to toggle source
    # File lib/action_dispatch/http/upload.rb, line 24
24:       def size
25:         @tempfile.size
26:       end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.