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

accept

        # Socket.accept

(from ruby core)
---
    socket.accept => [client_socket, client_addrinfo]

---

Accepts a next connection. Returns a new Socket object and Addrinfo
object.

    serv = Socket.new(:INET, :STREAM, 0)
    serv.listen(5)
    c = Socket.new(:INET, :STREAM, 0)
    c.connect(serv.connect_address)
    p serv.accept #=> [#<Socket:fd 6>, #<Addrinfo: 127.0.0.1:48555 TCP>]



      

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.