Class: Adhearsion::Router::FilteredRouter

Inherits:
SimpleDelegator
  • Object
show all
Includes:
Filters
Defined in:
lib/adhearsion/router.rb

Instance Method Summary collapse

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