Class: Dizby::SelfPipe
- Inherits:
-
Struct
- Object
- Struct
- Dizby::SelfPipe
- Defined in:
- lib/dizby/utility/self_pipe.rb
Instance Attribute Summary collapse
-
#read ⇒ Object
Returns the value of attribute read.
-
#write ⇒ Object
Returns the value of attribute write.
Instance Method Summary collapse
Instance Attribute Details
#read ⇒ Object
Returns the value of attribute read
9 10 11 |
# File 'lib/dizby/utility/self_pipe.rb', line 9 def read @read end |
#write ⇒ Object
Returns the value of attribute write
9 10 11 |
# File 'lib/dizby/utility/self_pipe.rb', line 9 def write @write end |
Instance Method Details
#close_read
11 12 13 |
# File 'lib/dizby/utility/self_pipe.rb', line 11 def close_read read.close if read && !read.closed? end |
#close_write
15 16 17 |
# File 'lib/dizby/utility/self_pipe.rb', line 15 def close_write write.close if write && !write.closed? end |