= private = protected
dirname()
See File.dirname. Returns all but the last component of the path.
# File lib/pathname.rb, line 826 def dirname() self.class.new(File.dirname(@path)) end