instance method IPAddr#to_s
to_s -> String
-
文字列に変換します。
addr6 = IPAddr.new('::1') addr6.to_s #=> "::1" addr6.to_string #=> "0000:0000:0000:0000:0000:0000:0000:0001"
[SEE_ALSO] IPAddr#to_string
class IPAddr
to_s -> String
文字列に変換します。
addr6 = IPAddr.new('::1') addr6.to_s #=> "::1" addr6.to_string #=> "0000:0000:0000:0000:0000:0000:0000:0001"
[SEE_ALSO] IPAddr#to_string