= private = protected
to_s()
returns the domain name as a string.
The domain name doesn’t have a trailing dot even if the name object is absolute.
p Resolv::DNS::Name.create("x.y.z.").to_s #=> "x.y.z" p Resolv::DNS::Name.create("x.y.z").to_s #=> "x.y.z"
# File lib/resolv.rb, line 1083 def to_s return @labels.join('.') end