Method: IPAddress::IPv4#octets
- Defined in:
- lib/ipaddress/ipv4.rb
#octets ⇒ Object
Returns the address as an array of decimal values
ip = IPAddress("172.16.100.4")
ip.octets
#=> [172, 16, 100, 4]
155 156 157 |
# File 'lib/ipaddress/ipv4.rb', line 155 def octets @octets end |