Skip to content
class method

Resolv::IPv4.create

(::String | instance arg) -> instance
create(arg)

Creates a new IPv4 address from arg which may be:

IPv4

returns arg.

String

arg must match the IPv4::Regex constant

See also #to_name also in 4.1 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0