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