Module: Down::DownloadedFile

Defined in:
lib/down.rb

Instance Method Summary collapse

Instance Method Details

#original_filenameObject



108
109
110
111
112
113
114
# File 'lib/down.rb', line 108

def original_filename
  path = base_uri.path
  unless path.empty? || path == "/"
    filename = path.split("/").last
    CGI.unescape(filename)
  end
end