foca/sinatra-url — pull request #1 by eckardt (2012-10-24 20:54:38+00:00)
Title: Let Sinatra::URL::Route instances delegate to the pattern

There is Rack middleware which requires the routes to behave like normal regex instances. For example newrelic_rpm requires the routes to respond to the source method. This pull request changes Sinatra::URL::Route to delegate any unknown methods to the @pattern variable it holds.