Module: Kazoo::Router::Dispatch

Included in:
Kazoo::Router
Defined in:
lib/kazoo/router/dispatch.rb

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(klass) ⇒ Object



5
6
7
8
9
# File 'lib/kazoo/router/dispatch.rb', line 5

def self.included(klass)
  klass.send(:include, Common)
  klass.set :type, :dispatch
  klass.send(:extend, ClassMethods)
end

Instance Method Details

#error_handler(app) ⇒ Object



19
20
21
# File 'lib/kazoo/router/dispatch.rb', line 19

def error_handler(app)
  @error_handler = app
end

#general_handler(app) ⇒ Object



23
24
25
# File 'lib/kazoo/router/dispatch.rb', line 23

def general_handler(app)
  @general_handler = app
end