bluemonk/ipaddress — pull request #41 by ghg (2014-06-07 01:06:24+00:00)
Title: Raise ArgumentError if IP is nil

We end up doing a lot of calculations before actually instantiating an IPAddress object. Occasionally we end up passing a nil value which results in:

pry(main)> ip = IPAddress::IPv4.new(nil)
NoMethodError: undefined method `split' for nil:NilClass

This PR raises the same exception that is raised for invalid input when given nil input.