instance method
Pathname#dirname
() -> ::Pathname
dirname
pathname_builtin.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/pathname_builtin.rb, line 975
def dirname() self.class.new(File.dirname(@path)) end
See File.dirname. Returns all but the last component of the path.