original_string: public function parse($path)
  	{
  		if (is_string($path)) {
  			if (substr($path, 0, 1) === $this->separator) {
  				$path = substr($path, 1);
  			}
  			$this->segments = explode($this->separator, $path);	
  		} else {
  			throw new \InvalidArgumentException(
  				__METHOD__."() expects parameter one, path, to be a string"
  			);
  		}
  		
  		return;
  	}
code: public function parse($path)
  	{
  		if (is_string($path)) {
  			if (substr($path, 0, 1) === $this->separator) {
  				$path = substr($path, 1);
  			}
  			$this->segments = explode($this->separator, $path);	
  		} else {
  			throw new \InvalidArgumentException(
  				__METHOD__."() expects parameter one, path, to be a string"
  			);
  		}
  		
  		return;
  	}
code_tokens: public function parse ( $ path ) { if ( is_string ( $ path ) ) { if ( substr ( $ path , 0 , 1 ) === $ this -> separator ) { $ path = substr ( $ path , 1 ) ; } $ this -> segments = explode ( $ this -> separator , $ path ) ; } else { throw new \ InvalidArgumentException ( __METHOD__ . "() expects parameter one, path, to be a string" ) ; } return ; }
docstring: Parses the string path into this Path object
  
  Keep in mind, if $path does not use the default separator, you should set the
  path's separator first, before calling parse().
  
  @param  string  $path  the path to parse (with or without leading separator)
  @return  self
  @throws  InvalidArgumentException  if $path is not a string
  @since   0.1.0
docstring_tokens: Parses the string path into this Path object