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