Module: Adhearsion::Router::Filters
- Included in:
- Adhearsion::Router, FilteredRouter
- Defined in:
- lib/adhearsion/router.rb
Instance Method Summary collapse
- #evented(&block) ⇒ Object
- #filtered_routes(mixin, &block) ⇒ Object
- #openended(&block) ⇒ Object
- #unaccepting(&block) ⇒ Object
Instance Method Details
permalink #evented(&block) ⇒ Object
[View source]
41 42 43 |
# File 'lib/adhearsion/router.rb', line 41 def evented(&block) filtered_routes EventedRoute, &block end |
permalink #filtered_routes(mixin, &block) ⇒ Object
[View source]
53 54 55 |
# File 'lib/adhearsion/router.rb', line 53 def filtered_routes(mixin, &block) FilteredRouter.new(self, mixin).instance_exec(&block) end |
permalink #openended(&block) ⇒ Object
[View source]
49 50 51 |
# File 'lib/adhearsion/router.rb', line 49 def openended(&block) filtered_routes OpenendedRoute, &block end |
permalink #unaccepting(&block) ⇒ Object
[View source]
45 46 47 |
# File 'lib/adhearsion/router.rb', line 45 def unaccepting(&block) filtered_routes UnacceptingRoute, &block end |