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

recv_io

        # UNIXSocket.recv_io

(from ruby core)
---
    unixsocket.recv_io([klass [, mode]]) => io

---

Example

    UNIXServer.open("/tmp/sock") {|serv|
      UNIXSocket.open("/tmp/sock") {|c|
        s = serv.accept

        c.send_io STDOUT
        stdout = s.recv_io

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

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

*klass* will determine the class of *io* returned (using the IO.for_fd
singleton method or similar). If *klass* is `nil`, an integer file
descriptor is returned.

*mode* is the same as the argument passed to IO.for_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.