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

int

        # Socket::Option.int

(from ruby core)
### Implementation from Option
---
    Socket::Option.int(family, level, optname, integer) => sockopt

---

Creates a new Socket::Option object which contains an int as data.

The size and endian is dependent on the platform.

    p Socket::Option.int(:INET, :SOCKET, :KEEPALIVE, 1)
    #=> #<Socket::Option: INET SOCKET KEEPALIVE 1>


(from ruby core)
### Implementation from Option
---
    sockopt.int => integer

---

Returns the data in *sockopt* as an int.

The size and endian is dependent on the platform.

    sockopt = Socket::Option.int(:INET, :SOCKET, :KEEPALIVE, 1)
    p sockopt.int => 1



      

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.