lib/ipaddress/ipv6.rb
#
# Iterates over all the IP addresses for the given
# network (or IP address).
#
# The object yielded is a new IPv6 object created
# from the iteration.
#
#   ip6 = IPAddress("2001:db8::4/125")
#
#   ip6.each do |i|
#     p i.compressed
#   end
#     #=> "2001:db8::"
#     #=> "2001:db8::1"
#     #=> "2001:db8::2"
#     #=> "2001:db8::3"
#     #=> "2001:db8::4"
#     #=> "2001:db8::5"
#     #=> "2001:db8::6"
#     #=> "2001:db8::7"
#
# WARNING: if the host portion is very large, this method 
# can be very slow and possibly hang your system!
#
Iterates over all the IP addresses for the given
network (or IP address).

The object yielded is a new IPv6 object created
from the iteration.





if the host portion is very large, this method
can be very slow and possibly hang your system!
Iterates over all the IP addresses for the given network ( or IP address ) . The object yielded is a new IPv6 object created from the iteration . if the host portion is very large this method can be very slow and possibly hang your system!
def each
      (network_u128..broadcast_u128).each do |i|
        yield self.class.parse_u128(i, @prefix)
      end
    end
def each ( network_u128 .. broadcast_u128 ) . each do | i | yield self . class . parse_u128 ( i , @prefix ) end end
Iterates over all the IP addresses for the given
network (or IP address).
Iterates over all the IP addresses for the given network ( or IP address ) .