instance method
Pathname#parent
() -> ::Pathname
parent
pathname_builtin.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.0.0/pathname_builtin.rb, line 505
def parent
self + '..'
end
Returns the parent directory.
This is same as self + '..'.