Method: IPAddress::IPv6#prefix

Defined in:
lib/ipaddress/ipv6.rb

#prefixObject

Returns an instance of the prefix object

ip6 = IPAddress "2001:db8::8:800:200c:417a/64"

ip6.prefix
  #=> 64


141
142
143
# File 'lib/ipaddress/ipv6.rb', line 141

def prefix
  @prefix
end