As the title. The reason why I want a native Ruby method is because I want the code portable across Linux and MacOS. "ip route show" can be used on Linux, but MacOS doesn't have "ip" command.
If there is not a native Ruby method, other portable method is also acceptable.