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.
75 76 77 |
# File 'lib/lazylead/schedule.rb', line 75 def initialize(log = Log.new) @log = log end |
Instance Method Details
#join ⇒ Object
87 88 89 |
# File 'lib/lazylead/schedule.rb', line 87 def join @log.debug "#{self}#join" end |
#ps ⇒ Object
83 84 85 |
# File 'lib/lazylead/schedule.rb', line 83 def ps @log.debug "#{self}#ps" end |
#register(task) ⇒ Object
79 80 81 |
# File 'lib/lazylead/schedule.rb', line 79 def register(task) @log.debug "Task registered: #{task}" end |