class Addressable::URI

def split_path(path)

Returns:
  • (Array) - An array of parts of path.

Parameters:
  • path (String) -- The path to split.
def split_path(path)
  splitted = path.split(SLASH)
  splitted << EMPTY_STR if path.end_with? SLASH
  splitted
end