Class: Thronglets::Worker
- Inherits:
-
Object
- Object
- Thronglets::Worker
- Defined in:
- lib/thronglets/worker.rb
Instance Attribute Summary collapse
-
#loader ⇒ Object
readonly
Returns the value of attribute loader.
Instance Method Summary collapse
-
#initialize ⇒ Worker
constructor
A new instance of Worker.
- #run ⇒ Object
Constructor Details
#initialize ⇒ Worker
Returns a new instance of Worker.
11 12 13 14 |
# File 'lib/thronglets/worker.rb', line 11 def initialize @loader = Thronglets::Loader.new loader.load end |
Instance Attribute Details
#loader ⇒ Object (readonly)
Returns the value of attribute loader.
9 10 11 |
# File 'lib/thronglets/worker.rb', line 9 def loader @loader end |
Instance Method Details
#run ⇒ Object
16 17 18 19 |
# File 'lib/thronglets/worker.rb', line 16 def run registry.load! worker.start # runs forever end |