Module: Down::DownloadedFile
- Defined in:
- lib/down.rb
Instance Method Summary collapse
Instance Method Details
#original_filename ⇒ Object
110 111 112 113 114 115 116 |
# File 'lib/down.rb', line 110 def original_filename path = base_uri.path unless path.empty? || path == "/" filename = path.split("/").last CGI.unescape(filename) end end |