lib/sinatra/route_parser.rb in sinatra-named-routes-subdomains-0.1.5 vs lib/sinatra/route_parser.rb in sinatra-named-routes-subdomains-0.1.6
- old
+ new
@@ -1,8 +1,9 @@
module Sinatra
module NamedRoutes
class Route
attr_reader :source
+ attr_reader :params
def initialize(route, params = {})
route = route.source if route.is_a? Regexp
@source = route
\ No newline at end of file