method

basename

v2_2_9 - Show latest stable - Class: Pathname
basename(p1 = v1)
public

Returns the last component of the path.

See File.basename.