Class: Adhearsion::Router::FilteredRouter
- Includes:
- Filters
- Defined in:
- lib/adhearsion/router.rb
Instance Method Summary collapse
-
#initialize(delegate, mixin) ⇒ FilteredRouter
constructor
A new instance of FilteredRouter.
- #route(*args, &block) ⇒ Object
Methods included from Filters
#evented, #filtered_routes, #openended, #unaccepting
Constructor Details
#initialize(delegate, mixin) ⇒ FilteredRouter
Returns a new instance of FilteredRouter.
63 64 65 66 |
# File 'lib/adhearsion/router.rb', line 63 def initialize(delegate, mixin) super delegate @mixin = mixin end |
Instance Method Details
#route(*args, &block) ⇒ Object
68 69 70 |
# File 'lib/adhearsion/router.rb', line 68 def route(*args, &block) super.tap { |r| r.extend @mixin } end |