abstract class Subnet::Prefix
- Subnet::Prefix
- Reference
- Object
Overview
The base class for Prefix32
and Prefix128
defining some
common methods that exist in both.
Included Modules
- Comparable(Int32 | Int64 | Subnet::Prefix | UInt32 | UInt64 | UInt8)
Direct Known Subclasses
Defined in:
subnet/prefix.crConstructors
Instance Method Summary
-
#+(other)
Add this Prefix to another.
-
#-(other)
Subtract another Prefix from this one.
-
#<=>(other)
Compare this Prefix to another.
- #prefix : Int32
- #prefix=(prefix : Int32)
-
#to_i : Int32
Return this Prefix as an integer.
-
#to_s(io)
Convert the Prefix to a string.