class method self.new

Ruby on Rails 3.0.20

Since v3.0.20 Last seen in v3.2.22.5

Available in: v3.0.20 v3.1.12 v3.2.22.5

Signature

self.new(hash)

No documentation comment.

Parameters

hash req
Source
# File actionpack/lib/action_dispatch/http/upload.rb, line 6
      def initialize(hash)
        @original_filename = encode_filename(hash[:filename])
        @content_type      = hash[:type]
        @headers           = hash[:head]
        @tempfile          = hash[:tempfile]
        raise(ArgumentError, ':tempfile is required') unless @tempfile
      end

Defined in actionpack/lib/action_dispatch/http/upload.rb line 6 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActionDispatch::Http::UploadedFile

Type at least 2 characters to search.

↑↓ navigate · open · esc close