Sha256: 9a0eb5ff99c39c2ae1f4d9052227de72996f82c83ce7156236b2ffe7f6ec847c
Contents?: true
Size: 387 Bytes
Versions: 1
Compression:
Stored size: 387 Bytes
Contents
module Puuko def self.router(&block) router_class = Class.new(Puuko::Router) router_class.routing = block router_class end class Router class << self def routing @routing end def routing=(block) @routing = block end end def apply(application) application.instance_eval(&self.class.routing) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
puuko-0.0.1 | lib/puuko/router.rb |