Skip to content

Latest commit

 

History

History
11 lines (7 loc) · 251 Bytes

README.md

File metadata and controls

11 lines (7 loc) · 251 Bytes

Because it's just a 32-bit integer.

Usage:

require 'iplogic'
include IPLogic

ip = IP['11.22.33.44']
cidr = CIDR['11.22.32.00/20']

Look in spec/ip_spec.rb and spec/cidr_spec.rb for a neat summary of all the methods available.