Class: Channel::Timer
- Inherits:
-
Object
- Object
- Channel::Timer
- Defined in:
- lib/channel/timer.rb
Instance Attribute Summary collapse
-
#channel ⇒ Object
readonly
Returns the value of attribute channel.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(delay) ⇒ Timer
constructor
A new instance of Timer.
- #start ⇒ Object
Constructor Details
Instance Attribute Details
#channel ⇒ Object (readonly)
Returns the value of attribute channel.
2 3 4 |
# File 'lib/channel/timer.rb', line 2 def channel @channel end |
Class Method Details
.after(delay) ⇒ Object
14 15 16 |
# File 'lib/channel/timer.rb', line 14 def self.after(delay) new(delay).channel end |