winsize=

io.winsize = [rows, columns] Instance Public methods Tries to set console size. The effect depends on the platform and the running environment. You must require 'io/console' to use this method.

write 2

ios.write(string) â integer Instance Public methods Writes the given string to ios. The stream must be opened for writing. If the argument is not a string, it will be converted to a string using to_s. Returns the number of bytes written. count = $stdout.write("This is a test\n") puts "That was #{count} bytes of data" produces: This is a test That was 15 bytes of data

write_nonblock

ios.write_nonblock(string) â integer Instance Public methods Writes the given string to ios using the write(2) system call after O_NONBLOCK is set for the underlying file descriptor. It returns the number of bytes written. #write_nonblock just calls the write(2) system call. It causes all errors the write(2) system call causes: Errno::EWOULDBLOCK, Errno::EINTR, etc. The result may also be smaller than string.length (partial write). The caller should care such errors and partial

new

new(addr = '::', family = Socket::AF_UNSPEC) Class Public methods Creates a new ipaddr object either from a human readable IP address representation in string, or from a packed in_addr value followed by an address family. In the former case, the following are the valid formats that will be recognized: âaddressâ, âaddress/prefixlenâ and âaddress/maskâ, where IPv6 address may be enclosed in square brackets (`[' and `]'). If a prefixlen or a mask is specified, it returns a masked IP

new_ntoh

new_ntoh(addr) Class Public methods Creates a new ipaddr containing the given network byte ordered string form of an IP address.

ntop

ntop(addr) Class Public methods Convert a network byte ordered string form of an IP address into human readable form.

&

&(other) Instance Public methods Returns a new ipaddr built by bitwise AND.

<<

<<(num) Instance Public methods Returns a new ipaddr built by bitwise left shift.

&lt;=&gt;

<=>(other) Instance Public methods Compares the ipaddr with another.

==

==(other) Instance Public methods Returns true if two ipaddrs are equal.