Sha256: d4d2ef76c4b6cd35a6b34bfc48fca20caeefa9b44d6fc21cbd52c7665bf910db
Contents?: true
Size: 404 Bytes
Versions: 1
Compression:
Stored size: 404 Bytes
Contents
require 'http_router' module Gurk class Router def initialize http_router end def http_router @http_router ||= HttpRouter.new end def add(page) routes.push(page) http_router.add(page.route).to { |env| page.render env } end def routes @routes ||= [] end def call(env) http_router.call(env) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gurk-0.0.1 | lib/gurk/router.rb |