Preview Ruby 4.1 is a preview. It can change before the final release. Switch to Ruby 4.0 →
class method
IPAddr.new_ntoh
(::String addr) -> ::IPAddr
new_ntoh(addr)
lib/ipaddr.rb
View on GitHub ↗
# File tmp/rubies/ruby-4.1.0-preview1/lib/ipaddr.rb, line 108
def self.new_ntoh(addr)
return new(ntop(addr))
end
Creates a new ipaddr containing the given network byte ordered string form of an IP address.