Method: IPAddress::IPv4#to_s

Defined in:
lib/ipaddress/ipv4.rb

#to_sObject

Returns a string with the address portion of the IPv4 object

ip = IPAddress("172.16.100.4/22")

ip.to_s
  #=> "172.16.100.4"


166
167
168
# File 'lib/ipaddress/ipv4.rb', line 166

def to_s
  @address
end