module IP

Defined in:

ip/address.cr
ip_address.cr

Constructors

Class Method Summary

Constructor Detail

def self.new(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.


[View source]

Class Method Detail

def self.[](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.


[View source]
def self.[]?(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.


[View source]
def self.new?(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.


[View source]