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

close_on_exec=

        # IO.close_on_exec=

(from ruby core)
---
    ios.close_on_exec = bool    -> true or false

---

Sets a close-on-exec flag.

    f = open("/dev/null")
    f.close_on_exec = true
    system("cat", "/proc/self/fd/#{f.fileno}") # cat: /proc/self/fd/3: No such file or directory
    f.closed?                #=> false

Ruby sets close-on-exec flags of all file descriptors by default since
Ruby 2.0.0. So you don't need to set by yourself. Also, unsetting a
close-on-exec flag can cause file descriptor leak if another thread use
fork() and exec() (via system() method for example). If you really needs
file descriptor inheritance to child process, use spawn()'s argument
such as fd=>fd.



      

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.