Skip to content
instance method

Pathname#basename

(?::String | ::_ToStr suffix) -> ::Pathname
basename(...)

See File.basename. Returns the last component of the path.

See also #atime #binread #ascend #binwrite also in 4.1 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0