Class: Puuko::Router

Inherits:
Object
  • Object
show all
Defined in:
lib/puuko/router.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.routingObject



10
11
12
# File 'lib/puuko/router.rb', line 10

def routing
  @routing
end

.routing=(block) ⇒ Object



14
15
16
# File 'lib/puuko/router.rb', line 14

def routing=(block)
  @routing = block
end

Instance Method Details

#apply(application) ⇒ Object



19
20
21
# File 'lib/puuko/router.rb', line 19

def apply(application)
  application.instance_eval(&self.class.routing)
end