instance method
Pathname#basename
(?::String | ::_ToStr suffix) -> ::Pathname
basename(...)
pathname_builtin.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/pathname_builtin.rb, line 972
def basename(...) self.class.new(File.basename(@path, ...)) end
See File.basename. Returns the last component of the path.