Module: Down::DownloadedFile
- Defined in:
- lib/down.rb
Instance Method Summary collapse
Instance Method Details
#original_filename ⇒ Object
52 53 54 55 56 |
# File 'lib/down.rb', line 52 def original_filename path = base_uri.path path = URI.decode(path) File.basename(path) unless path.empty? || path == "/" end |