Module: Down::DownloadedFile
- Defined in:
- lib/down.rb
Instance Method Summary collapse
Instance Method Details
#original_filename ⇒ Object
209 210 211 212 213 214 215 |
# File 'lib/down.rb', line 209 def original_filename path = base_uri.path unless path.empty? || path == "/" filename = path.split("/").last CGI.unescape(filename) end end |