ruby-radix is an implementation of a radix tree data structure for the storage and retrieval of IPv4 and IPv6 network prefixes.
sogabe
gem "ruby-radix", "~> 0.0.3"