Module: Breakout::Worker
- Defined in:
- lib/breakout/api.rb,
lib/breakout/app.rb,
lib/breakout/worker.rb
Defined Under Namespace
Modules: API
Classes: App
Constant Summary
collapse
- WORKERS =
Array.new
Class Method Summary
collapse
Class Method Details
.included(base) ⇒ Object
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
# File 'lib/breakout/worker.rb', line 5
def self.included(base)
WORKERS << base
base.class_eval do
include(API)
attr_accessor :socket
end
base.instance_eval do
def route
name.downcase
end
end
end
|