returns the socket type as an integer.
Addrinfo.tcp("localhost", 80).protocol == Socket::IPPROTO_TCP #=> true
Returns true
if the underlying file descriptor of ios will be closed at its finalization or at calling close
, otherwise false
.
Sets auto-close flag.
f = File.open(File::NULL) IO.for_fd(f.fileno).close f.gets # raises Errno::EBADF f = File.open(File::NULL) g = IO.for_fd(f.fileno) g.autoclose = false g.close f.gets # won't cause Errno::EBADF
Returns the ALPN protocol string that was finally selected by the server during the handshake.
Returns the protocol string that was finally selected by the client during the handshake.
Cleans up uninstalled files and invalid gem specifications
Represents the location of the ‘&&=` operator.
@@target &&= value ^^^
Returns the location of the binary operator used to modify the receiver. This method is deprecated in favor of binary_operator_loc
.
attr_reader operator_loc
: Location
attr_reader operator_loc
: Location
Returns the location of the binary operator used to modify the receiver. This method is deprecated in favor of binary_operator_loc
.
Returns the location of the binary operator used to modify the receiver. This method is deprecated in favor of binary_operator_loc
.
Returns the location of the binary operator used to modify the receiver. This method is deprecated in favor of binary_operator_loc
.
Returns the location of the binary operator used to modify the receiver. This method is deprecated in favor of binary_operator_loc
.
Represents the alternation operator location.
foo => bar | baz ^
The location of the ‘and` keyword or the `&&` operator.
left and right ^^^