# File lib/pathname2.rb, line 323 def to_a array = split(@sep) # Split string by path separator array.delete("") # Remove empty elements array end