Module: Balotelli::Module::Base
- Includes:
- Core::Router
- Defined in:
- lib/balotelli/module/base.rb
Class Method Summary
collapse
Instance Method Summary
collapse
#match, #match?, #on, #setup_router
Class Method Details
.extended(mod) ⇒ Object
13
14
15
16
17
18
19
20
21
22
23
|
# File 'lib/balotelli/module/base.rb', line 13
def extended(mod)
super
mod.setup
mod.instance_eval do
def commands_namespace
@commands_namespace ||= name[/[^:]+$/].downcase.intern
end
end
end
|
Instance Method Details
#setup ⇒ Object
8
9
10
|
# File 'lib/balotelli/module/base.rb', line 8
def setup
setup_router
end
|