class

Subnet::Prefix

Inherits Comparable / Reference / Object

The base class for Prefix32 and Prefix128 defining some common methods that exist in both.

Constructors

new(num)

Create a new Prefix.

Source

Instance methods

+(other)

Add this Prefix to another.

Source
-(other)

Subtract another Prefix from this one.

Source
<=>(other)

Compare this Prefix to another.

Source
prefix
Source
prefix=(prefix : Int32)
Source
to_i

Return this Prefix as an integer.

Source
to_s(io)

Convert the Prefix to a string.

Source