Module: Newark::App::ClassMethods
- Defined in:
- lib/newark/app.rb
Instance Method Summary collapse
- #after(&block) ⇒ Object
- #before(&block) ⇒ Object
- #define_route(verb, path, constraints, handler) ⇒ Object
Instance Method Details
#after(&block) ⇒ Object
41 42 43 44 |
# File 'lib/newark/app.rb', line 41 def after(&block) @after_hooks ||= [] @after_hooks << block end |
#before(&block) ⇒ Object
36 37 38 39 |
# File 'lib/newark/app.rb', line 36 def before(&block) @before_hooks ||= [] @before_hooks << block end |