= private = protected
split_names(path)
split_names(path) -> prefix, [name, …]
# File ext/pathname/lib/pathname.rb, line 54 def split_names(path) names = [] while r = chop_basename(path) path, basename = r names.unshift basename end return path, names end