class Puuko::Router
Public Class Methods
routing()
click to toggle source
# File lib/puuko/router.rb, line 10 def routing @routing end
routing=(block)
click to toggle source
# File lib/puuko/router.rb, line 14 def routing=(block) @routing = block end
Public Instance Methods
apply(application)
click to toggle source
# File lib/puuko/router.rb, line 19 def apply(application) application.instance_eval(&self.class.routing) end