Class: Goru::Routines::Bridges::Writable
- Inherits:
-
Goru::Routines::Bridge
- Object
- Goru::Routine
- Goru::Routines::Bridge
- Goru::Routines::Bridges::Writable
- Defined in:
- lib/goru/routines/bridges/writable.rb
Instance Attribute Summary
Attributes inherited from Goru::Routine
Instance Method Summary collapse
-
#applicable? ⇒ Boolean
[public].
-
#initialize ⇒ Writable
constructor
A new instance of Writable.
Methods inherited from Goru::Routines::Bridge
#channel_closed, #channel_read, #channel_received, #channel_reopened, #ready?
Methods inherited from Goru::Routine
#call, #finished, #reactor=, #result, #sleep, #update, #wake
Constructor Details
#initialize ⇒ Writable
Returns a new instance of Writable.
9 10 11 12 13 |
# File 'lib/goru/routines/bridges/writable.rb', line 9 def initialize(...) super update_status end |
Instance Method Details
#applicable? ⇒ Boolean
- public
17 18 19 |
# File 'lib/goru/routines/bridges/writable.rb', line 17 def applicable? @routine.intent == :w end |