Sha256: f74083504d774ba3873de22d8a94470916648a577c58f8532b92eb5897a6709c

Contents?: true

Size: 270 Bytes

Versions: 8

Compression:

Stored size: 270 Bytes

Contents

require "anyfetch/original_filename/path"

module Anyfetch
  class File
    def initialize(uri, options = {})
      @uri = uri
      @options = options
    end

    def open
      file = ::File.open(@uri.path)
      file.extend(OriginalFilename::Path)
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
anyfetch-0.1.7 lib/anyfetch/file.rb
anyfetch-0.1.6 lib/anyfetch/file.rb
anyfetch-0.1.5 lib/anyfetch/file.rb
anyfetch-0.1.4 lib/anyfetch/file.rb
anyfetch-0.1.3 lib/anyfetch/file.rb
anyfetch-0.1.2 lib/anyfetch/file.rb
anyfetch-0.1.1 lib/anyfetch/file.rb
anyfetch-0.1.0 lib/anyfetch/file.rb