Sha256: 504a2c00fa9def50b4084384edae1748a68c3f608c9689928a921d74fd6fcb2c
Contents?: true
Size: 203 Bytes
Versions: 4
Compression:
Stored size: 203 Bytes
Contents
module Newark class Router def initialize(routes, request) @routes, @request = routes, request end def route @routes.find { |route| route.match?(@request) } end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
newark-0.0.8 | lib/newark/router.rb |
newark-0.0.7 | lib/newark/router.rb |
newark-0.0.6 | lib/newark/router.rb |
newark-0.0.5 | lib/newark/router.rb |