def chomp(sep = $/) "ruby\n".chomp #=> "ruby" end
Returns a new string with the trailing newline removed.
Socket::Ifaddr represents a result of getifaddrs() function.
Socket::Ifaddr