Method: IPAddress::IPv6#to_s

Defined in:
lib/ipaddress/ipv6.rb

#to_sObject

Returns the IPv6 address in a human readable form, using the compressed address.

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

ip6.to_s
  #=> "2001:db8::8:800:200c:417a"


201
202
203
# File 'lib/ipaddress/ipv6.rb', line 201

def to_s
  @compressed
end