struct

Ipconv::CIDR

Inherits Struct < Value < Object

Constructors

new(network : Address, prefix : UInt8)
Source
parse(input : String) : CIDR
Source

Class methods

hi_mask(prefix : UInt8, bits : UInt8) : UInt64
Source
lo_mask(prefix : UInt8, bits : UInt8) : UInt64
Source
network_mask(prefix : UInt8, bits : UInt8) : UInt32
Source
warn_host_bits(input : String, given : Address, network : Address, _prefix : UInt8)
Source

Instance methods

first
Source
first_host
Source
host_count
Source
last
Source
last_host
Source
network
Source
prefix
Source
subnet_mask
Source
to_s

Returns a nicely readable and concise string representation of this object, typically intended for users.

This method should usually not be overridden. It delegates to #to_s(IO) which can be overridden for custom implementations.

Also see #inspect.

Source
total
Source
version
Source
wildcard_mask
Source