Method: IPAddress::IPv6.expand
- Defined in:
- lib/ipaddress/ipv6.rb
.expand(str) ⇒ Object
Expands an IPv6 address in the canocical form
IPAddress::IPv6. "2001:0DB8:0:CD30::"
#=> "2001:0DB8:0000:CD30:0000:0000:0000:0000"
513 514 515 |
# File 'lib/ipaddress/ipv6.rb', line 513 def self.(str) self.new(str).address end |