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

peeraddr

        # UNIXSocket.peeraddr

(from ruby core)
---
    unixsocket.peeraddr => [address_family, unix_path]

---

Returns the remote address as an array which contains address_family and
unix_path.

Example
    serv = UNIXServer.new("/tmp/sock")
    c = UNIXSocket.new("/tmp/sock")
    p c.peeraddr #=> ["AF_UNIX", "/tmp/sock"]



      

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.