class Addressable::URI

def basename

Returns:
  • (String) - The path's basename.
def basename
  # Path cannot be nil
  return File.basename(self.path).sub(/;[^\/]*$/, EMPTY_STR)
end