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

linger

        # Socket::Option.linger

(from ruby core)
### Implementation from Option
---
    Socket::Option.linger(onoff, secs) => sockopt

---

Creates a new Socket::Option object for SOL_SOCKET/SO_LINGER.

*onoff* should be an integer or a boolean.

*secs* should be the number of seconds.

    p Socket::Option.linger(true, 10)
    #=> #<Socket::Option: UNSPEC SOCKET LINGER on 10sec>


(from ruby core)
### Implementation from Option
---
    sockopt.linger => [bool, seconds]

---

Returns the linger data in *sockopt* as a pair of boolean and integer.

    sockopt = Socket::Option.linger(true, 10)
    p sockopt.linger => [true, 10]



      

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.