This is a Ruby tree! It shows every object from the Ruby Programming Language in a tree format.

close_write

        # IO.close_write

(from ruby core)
---
    ios.close_write   -> nil

---

Closes the write end of a duplex I/O stream (i.e., one that contains
both a read and a write stream, such as a pipe). Will raise an IOError
if the stream is not duplexed.

    f = IO.popen("/bin/sh","r+")
    f.close_write
    f.print "nowhere"

*produces:*

    prog.rb:3:in `write': not opened for writing (IOError)
     from prog.rb:3:in `print'
     from prog.rb:3

Calling this method on closed IO object is just ignored since Ruby 2.3.



      

This is MURDOC! A Ruby documentation browser inspired by Smalltalk-80. It allows you to learn about Ruby by browsing through its class hierarchies, and see any of its methods.