Module: Adhearsion::Router::Filters

Included in:
Adhearsion::Router, FilteredRouter
Defined in:
lib/adhearsion/router.rb

Instance Method Summary collapse

Instance Method Details

#evented(&block) ⇒ Object


41
42
43
# File 'lib/adhearsion/router.rb', line 41

def evented(&block)
  filtered_routes EventedRoute, &block
end

#filtered_routes(mixin, &block) ⇒ Object


53
54
55
# File 'lib/adhearsion/router.rb', line 53

def filtered_routes(mixin, &block)
  FilteredRouter.new(self, mixin).instance_exec(&block)
end

#openended(&block) ⇒ Object


49
50
51
# File 'lib/adhearsion/router.rb', line 49

def openended(&block)
  filtered_routes OpenendedRoute, &block
end

#unaccepting(&block) ⇒ Object


45
46
47
# File 'lib/adhearsion/router.rb', line 45

def unaccepting(&block)
  filtered_routes UnacceptingRoute, &block
end