Mustermann::Pattern#peek

Parsed documentation:
View on GitHub
Tries to match the pattern against the beginning of the string (as opposed to the full string).
Will return the substring if it matches.

@example
  pattern = Mustermann.new('/:name')
  pattern.peek("/Frank/Sinatra") # => "/Frank"

@param [String] string The string to match against
@return [String, nil] matched subsctring
No suggestions.
Please help! Open an issue on GitHub if this assessment is incorrect.