lib/ipaddress/ipv4.rb
def to(e)
      unless e.is_a? IPAddress::IPv4
        e = IPv4.new(e)
      end

      Range.new(@u32, e.to_u32).map{|i| IPAddress.ntoa(i) }
    end
def to(e)
      unless e.is_a? IPAddress::IPv4
        e = IPv4.new(e)
      end

      Range.new(@u32, e.to_u32).map{|i| IPAddress.ntoa(i) }
    end
def to ( e ) unless e . is_a? IPAddress :: IPv4 e = IPv4 . new ( e ) end Range . new ( @u32 , e . to_u32 ) . map { | i | IPAddress . ntoa ( i ) } end
Return a list of IP's between @address
 and the supplied IP

   ip = IPAddress("172.16.100.51/32")

   ip.to("172.16.100.100")
     #=> ["172.16.100.51",
     #=>  "172.16.100.52",
     #=>  ...
     #=>  "172.16.100.99",
     #=>  "172.16.100.100"]
Return a list of IP s between @address and the supplied IP