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