Method: Pathname#parent

Defined in:
lib/pathname.rb

#parentObject

Returns the parent directory.

This is same as self + '..'.



196
197
198
# File 'lib/pathname.rb', line 196

def parent
  self + '..'
end