From: Brian Candler Date: 2010-06-08T07:17:09+09:00 Subject: Re: IPAddress: new IP manipulation library Aaron D. Gifford wrote: > Without having looked at your library, does it support IP ranges (i.e. > blocks of IP addresses that are contiguous but do not necessarily > exactly match a subnet boundary)? Perhaps as a separate class? ...or it could be just a regular Ruby range, like this: >> require 'ip' => true >> r = IP.new("10.0.0.6")..IP.new("10.0.0.10") => #..# >> r.each { |x| p x } # # # # # => #..# (It's an interesting idea that perhaps an IP object should be a start+end range, but then you need a way to show an IP as a string when it's not suitable for addr/len form) -- Posted via http://www.ruby-forum.com/.