method

hton

ruby latest stable - Class: IPAddr
hton()
public

Returns a network byte ordered string form of the IP address.