Module: DTAS::WritableIter
- Included in:
- Pipe
- Defined in:
- lib/dtas/writable_iter.rb
Overview
:nodoc:
Instance Attribute Summary collapse
-
#on_writable ⇒ Object
Returns the value of attribute on_writable.
Instance Method Summary collapse
-
#writable_iter ⇒ Object
this is used to exchange our own writable status for the readable status of the DTAS::Buffer which triggered us.
- #writable_iter_init ⇒ Object
Instance Attribute Details
#on_writable ⇒ Object
Returns the value of attribute on_writable.
6 7 8 |
# File 'lib/dtas/writable_iter.rb', line 6 def on_writable @on_writable end |
Instance Method Details
#writable_iter ⇒ Object
this is used to exchange our own writable status for the readable status of the DTAS::Buffer which triggered us.
14 15 16 17 18 19 20 |
# File 'lib/dtas/writable_iter.rb', line 14 def writable_iter if owr = @on_writable @on_writable = nil owr.call # this triggers readability watching of DTAS::Buffer end :ignore end |
#writable_iter_init ⇒ Object
8 9 10 |
# File 'lib/dtas/writable_iter.rb', line 8 def writable_iter_init @on_writable = nil end |