Module: Lennarb::Router::ClassMethods
- Defined in:
- lib/lennarb/router.rb
Instance Method Summary collapse
-
#app ⇒ Object
Use this in congi.ru to start the application.
-
#route ⇒ Object
Helper method to define a route.
Instance Method Details
#app ⇒ Object
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 |
#route ⇒ Object
Helper method to define a route
returns [Lennarb] instance of the router
23 |
# File 'lib/lennarb/router.rb', line 23 def route = router |