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

bool

        # Socket::Option.bool

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

---

Creates a new Socket::Option object which contains boolean as data.
Actually 0 or 1 as int is used.

    require 'socket'

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

    p Socket::Option.bool(:INET, :SOCKET, :KEEPALIVE, false)
    #=> #<Socket::Option: AF_INET SOCKET KEEPALIVE 0>


(from ruby core)
### Implementation from Option
---
    sockopt.bool => true or false

---

Returns the data in *sockopt* as an boolean value.

    sockopt = Socket::Option.int(:INET, :SOCKET, :KEEPALIVE, 1)
    p sockopt.bool => 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.