class Mustermann::Mapper

A mapper allows mapping one string to another based on pattern parsing and expanding.

@example

require 'mustermann/mapper'
mapper = Mustermann::Mapper.new("/:foo" => "/:foo.html")
mapper['/example'] # => "/example.html"