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

send_io

        # UNIXSocket.send_io

(from ruby core)
---
    unixsocket.send_io(io) => nil

---

Sends *io* as file descriptor passing.

    s1, s2 = UNIXSocket.pair

    s1.send_io STDOUT
    stdout = s2.recv_io

    p STDOUT.fileno #=> 1
    p stdout.fileno #=> 6

    stdout.puts "hello" # outputs "hello\n" to standard output.

*io* may be any kind of IO object or integer file descriptor.



      

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.