Returns the #dirname and the #basename in an Array. See File.split.
File.split
48 49 50
# File 'lib/path/parts.rb', line 48 def split File.split(@path).map(&Path) end