Class: Domodoro::Channel
- Inherits:
-
EM::Channel
- Object
- EM::Channel
- Domodoro::Channel
- Defined in:
- lib/domodoro/channel.rb
Instance Method Summary collapse
Instance Method Details
#broadcast(timestamp, schedule) ⇒ Object
3 4 5 6 7 8 9 10 11 12 |
# File 'lib/domodoro/channel.rb', line 3 def broadcast(, schedule) action = schedule.to_hash[] if action next_action = schedule.action_after() self << { :current_action => [, action], :next_action => next_action } end end |