Class: Goru::Routines::Channels::Readable
- Inherits:
-
Goru::Routines::Channel
- Object
- Goru::Routine
- Goru::Routines::Channel
- Goru::Routines::Channels::Readable
- Defined in:
- lib/goru/routines/channels/readable.rb
Overview
- public
Instance Attribute Summary
Attributes inherited from Goru::Routine
Instance Method Summary collapse
-
#initialize ⇒ Readable
constructor
A new instance of Readable.
-
#read ⇒ Object
[public].
Methods inherited from Goru::Routines::Channel
#channel_closed, #channel_read, #channel_received, #channel_reopened
Methods inherited from Goru::Routine
#call, #finished, #reactor=, #result, #sleep, #update, #wake
Constructor Details
#initialize ⇒ Readable
Returns a new instance of Readable.
11 12 13 14 15 |
# File 'lib/goru/routines/channels/readable.rb', line 11 def initialize(...) super update_status end |
Instance Method Details
#read ⇒ Object
- public
19 20 21 |
# File 'lib/goru/routines/channels/readable.rb', line 19 def read @channel.read end |