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
.
11 12 13 |
# File 'lib/grubby/core_ext/uri.rb', line 11 def basename self.path == "/" ? "" : ::File.basename(self.path) end |