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

recv

        # BasicSocket.recv

(from ruby core)
---
    basicsocket.recv(maxlen[, flags[, outbuf]]) => mesg

---

Receives a message.

*maxlen* is the maximum number of bytes to receive.

*flags* should be a bitwise OR of Socket::MSG_* constants.

*outbuf* will contain only the received data after the method call even
if it is not empty at the beginning.

    UNIXSocket.pair {|s1, s2|
      s1.puts "Hello World"
      p s2.recv(4)                     #=> "Hell"
      p s2.recv(4, Socket::MSG_PEEK)   #=> "o Wo"
      p s2.recv(4)                     #=> "o Wo"
      p s2.recv(10)                    #=> "rld\n"
    }



      

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.