Class: Heimdall::Worker
Direct Known Subclasses
Class Method Summary collapse
- .call(opts = {}) ⇒ Object (also: perform)
Instance Method Summary collapse
-
#initialize ⇒ Worker
constructor
A new instance of Worker.
- #log(text = nil) ⇒ Object
Constructor Details
#initialize ⇒ Worker
Returns a new instance of Worker.
36 37 38 |
# File 'lib/heimdall/heimdall_worker.rb', line 36 def initialize @_log = [] end |
Class Method Details
Instance Method Details
#log(text = nil) ⇒ Object
40 41 42 43 44 45 46 47 |
# File 'lib/heimdall/heimdall_worker.rb', line 40 def log text = nil if text @_log.push text text else @_log.join $/ end end |