Method: URI#basename
- Defined in:
- lib/grubby/core_ext/uri.rb
#basename ⇒ String
Returns the basename of the URI's path, a la File.basename.
13 14 15 |
# File 'lib/grubby/core_ext/uri.rb', line 13 def basename self.path == "/" ? "" : ::File.basename(self.path) end |