Method: Jets::Router::Matcher#initialize

Defined in:
lib/jets/router/matcher.rb

#initialize(path, method) ⇒ Matcher

Returns a new instance of Matcher.



3
4
5
6
# File 'lib/jets/router/matcher.rb', line 3

def initialize(path, method)
  @path = path.sub(/^\//,'')
  @method = method.to_s.upcase
end