Method: Path#split

Defined in:
lib/path/parts.rb

#splitObject

Returns the #dirname and the #basename in an Array. See File.split.



48
49
50
# File 'lib/path/parts.rb', line 48

def split
  File.split(@path).map(&Path)
end