lib/angelo/mustermann.rb in angelo-0.1.16 vs lib/angelo/mustermann.rb in angelo-0.1.17

- old
+ new

@@ -20,11 +20,11 @@ end module ClassMethods HTTPABLE.each do |m| - define_method m do |path, &block| - path = ::Mustermann.new path + define_method m do |path, opts = {}, &block| + path = ::Mustermann.new path, opts routes[m][path] = Responder.new &block end end def websocket path, &block