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

protocol

        # Addrinfo.protocol

(from ruby core)
---
    addrinfo.protocol => integer

---

returns the socket type as an integer.

    Addrinfo.tcp("localhost", 80).protocol == Socket::IPPROTO_TCP #=> true



      

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.