Module: Lennarb::Router::ClassMethods

Defined in:
lib/lennarb/router.rb

Instance Method Summary collapse

Instance Method Details

#appObject

Use this in congi.ru to start the application



27
28
29
30
# File 'lib/lennarb/router.rb', line 27

def app
	router.freeze!
	router
end

#routeObject

Helper method to define a route

returns [Lennarb] instance of the router



23
# File 'lib/lennarb/router.rb', line 23

def route = router