class Anyfetch::File
Public Class Methods
new(uri, options = {})
click to toggle source
# File lib/anyfetch/file.rb, line 5 def initialize(uri, options = {}) @uri = uri @options = options end
Public Instance Methods
open()
click to toggle source
# File lib/anyfetch/file.rb, line 10 def open file = ::File.open(@uri.path) file.extend(OriginalFilename::Path) end