Module: Jeanine::Routing::Evaluation
- Included in:
- App
- Defined in:
- lib/jeanine/routing/evaluation.rb
Instance Method Summary collapse
Instance Method Details
#route_eval ⇒ Object
4 5 6 7 8 9 10 11 12 13 |
# File 'lib/jeanine/routing/evaluation.rb', line 4 def route_eval route = find_route if route result = instance_eval(&route[:block]) @response.write(result) else @response.status = 404 end @response.complete! end |