Class: Waiting::Waiter
- Inherits:
-
Object
- Object
- Waiting::Waiter
- Defined in:
- lib/waiting/waiter.rb
Instance Method Summary collapse
-
#done ⇒ Object
Mark the waiter as done.
-
#done? ⇒ Boolean
Is the waiter done?.
-
#initialize ⇒ Waiter
constructor
Waiter is in waiting state to start with.
Constructor Details
#initialize ⇒ Waiter
Waiter is in waiting state to start with
4 5 6 |
# File 'lib/waiting/waiter.rb', line 4 def initialize @done = false end |
Instance Method Details
#done ⇒ Object
Mark the waiter as done
9 10 11 |
# File 'lib/waiting/waiter.rb', line 9 def done @done = true end |
#done? ⇒ Boolean
Is the waiter done?
15 16 17 |
# File 'lib/waiting/waiter.rb', line 15 def done? @done end |