method

bool

v1_9_2_180 - Show latest stable - Class: Socket::Option
bool()
public

Returns the data in sockopt as an boolean value.

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