IPv4 swiss army chainsaw.
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
spec
.gitignore
.rspec
.rvmrc
.yardopts
Gemfile
LICENSE
README.md
Rakefile
iplogic.gemspec

README.md

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.