module

IP

Constructors

new(string : String)

ditto

Source

Class methods

[](string : String)

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.

Source
[]?(string : String)

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.

Source
new?(string : String)

ditto

Source

Nested types