Mustermann::Sinatra.escape

Parsed documentation:
View on GitHub
Takes a string and espaces any characters that have special meaning for Sinatra patterns.

@example
  require 'mustermann/sinatra'
  Mustermann::Sinatra.escape("/:name") # => "/\\:name"

@param [#to_s] string the input string
@return [String] the escaped string
No suggestions.
Please help! Open an issue on GitHub if this assessment is incorrect.