Mustermann::Pattern#peek_size

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 count of the matching characters if it matches.

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

@param [String] string The string to match against
@return [Integer, nil] the number of characters that match
No suggestions.
Please help! Open an issue on GitHub if this assessment is incorrect.