Class: MessageBus::TimerThread::CancelableEvery
- Inherits:
-
Object
- Object
- MessageBus::TimerThread::CancelableEvery
- Defined in:
- lib/message_bus/timer_thread.rb
Instance Attribute Summary collapse
-
#cancelled ⇒ Object
Returns the value of attribute cancelled.
-
#current ⇒ Object
Returns the value of attribute current.
Instance Method Summary collapse
Instance Attribute Details
#cancelled ⇒ Object
Returns the value of attribute cancelled.
26 27 28 |
# File 'lib/message_bus/timer_thread.rb', line 26 def cancelled @cancelled end |
#current ⇒ Object
Returns the value of attribute current.
26 27 28 |
# File 'lib/message_bus/timer_thread.rb', line 26 def current @current end |
Instance Method Details
#cancel ⇒ Object
27 28 29 30 |
# File 'lib/message_bus/timer_thread.rb', line 27 def cancel current.cancel if current @cancelled = true end |