module IP
Defined in:
ip/address.crip_address.cr
Constructors
-
.new(string : String)
Constructs a new IPv4 or IPv6
IP::Address
orIP::Block
by interpreting the contents of aString
.
Class Method Summary
-
.[](string : String)
Constructs a new IPv4 or IPv6
IP::Address
orIP::Block
by interpreting the contents of aString
. -
.[]?(string : String)
Constructs a new IPv4 or IPv6
IP::Address
by interpreting the contents of aString
. -
.new?(string : String)
Constructs a new IPv4 or IPv6
IP::Address
by interpreting the contents of aString
.
Constructor Detail
Constructs a new IPv4 or IPv6 IP::Address
or IP::Block
by interpreting the contents of a String
.
Expects an address in acceptable form.
Raises: MalformedError
when the input is malformed.
Class Method Detail
Constructs a new IPv4 or IPv6 IP::Address
or IP::Block
by interpreting the contents of a String
.
Expects an address in acceptable form.
Raises: MalformedError
when the input is malformed.
Constructs a new IPv4 or IPv6 IP::Address
by interpreting the contents of a String
.
Expects an address in acceptable form.
Returns nil
when the input is malformed.
Constructs a new IPv4 or IPv6 IP::Address
by interpreting the contents of a String
.
Expects an address in acceptable form.
Returns nil
when the input is malformed.