diff options
author | Mike Mackintosh <m@zyp.io> | 2015-01-26 16:38:10 -0500 |
---|---|---|
committer | Mike Mackintosh <m@zyp.io> | 2015-01-26 16:38:10 -0500 |
commit | c635c994d1b1725f2b6994e6538a33f0bf8c92e8 (patch) | |
tree | fc0162889fe2a9f743afaa95af1675acbe4b5391 /README.rdoc | |
parent | 35af5ddc8f602ba2cdde1c72b70c92c0f19548cb (diff) | |
download | ipaddress-c635c994d1b1725f2b6994e6538a33f0bf8c92e8.tar.gz |
use the #to_ipv6 method, faster
Diffstat (limited to 'README.rdoc')
-rw-r--r-- | README.rdoc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/README.rdoc b/README.rdoc index 0419f6c..2057d15 100644 --- a/README.rdoc +++ b/README.rdoc @@ -318,12 +318,17 @@ transform it in data format using the IPv4#data method: ip.data #=> "\254\020\n\001" -Finally, you can transform an IPv4 address into a format which is +Also, you can transform an IPv4 address into a format which is suitable to use in IPv4-IPv6 mapped addresses: ip.to_ipv6 #=> "ac10:0a01" +Finally, much like IPv4#to_ipv6 you can use to IPv4#to_h method to return a non-semicolon delineated string (useful with pcap/byte level usage): + + ip.to_h + #=> "ac100a01" + === Classful networks IPAddress allows you to create and manipulate objects using the old |