Class: Lazylead::NoSchedule
- Inherits:
-
Object
- Object
- Lazylead::NoSchedule
- Defined in:
- lib/lazylead/schedule.rb
Overview
Fake application schedule for unit testing purposes
Instance Method Summary collapse
-
#initialize(log = Log.new) ⇒ NoSchedule
constructor
A new instance of NoSchedule.
- #join ⇒ Object
- #ps ⇒ Object
- #register(task) ⇒ Object
Constructor Details
#initialize(log = Log.new) ⇒ NoSchedule
Returns a new instance of NoSchedule.
78 79 80 |
# File 'lib/lazylead/schedule.rb', line 78 def initialize(log = Log.new) @log = log end |
Instance Method Details
#join ⇒ Object
90 91 92 |
# File 'lib/lazylead/schedule.rb', line 90 def join @log.debug "#{self}#join" end |
#ps ⇒ Object
86 87 88 |
# File 'lib/lazylead/schedule.rb', line 86 def ps @log.debug "#{self}#ps" end |
#register(task) ⇒ Object
82 83 84 |
# File 'lib/lazylead/schedule.rb', line 82 def register(task) @log.debug "Task registered: #{task}" end |