Add getters to Route#{path,method} (#332)

This commit is contained in:
Sijawusz Pur Rahnama 2017-03-12 17:40:30 +01:00 committed by Serdar Dogruyol
parent 298a4b234b
commit e0511743b1
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@ module Kemal
# It takes 3 parameters: Method, path and a block to specify
# what action to be done if the route is matched.
class Route
getter handler
getter method, path, handler
@handler : HTTP::Server::Context -> String
@method : String