Class: Ipv6Address
- Inherits:
-
BinData::Primitive
- Object
- BinData::Primitive
- Ipv6Address
- Defined in:
- lib/ipv6_address.rb
Instance Method Summary collapse
Instance Method Details
#get ⇒ Object
7 8 9 |
# File 'lib/ipv6_address.rb', line 7 def get octets.map { |o| o.to_s(16) }.join(':') end |
#set(value) ⇒ Object
11 12 13 |
# File 'lib/ipv6_address.rb', line 11 def set(value) self.octets = value.split(':').map { |o| o.to_i(16) } end |