dirname -> Pathname
Pathname.new(File.dirname(self.to_s)) と同じです。
例 require "pathname" Pathname('/usr/bin/shutdown').dirname # => #<Pathname:/usr/bin>
require "pathname" Pathname('/usr/bin/shutdown').dirname # => #<Pathname:/usr/bin>
[SEE_ALSO] File.dirname