to_s

to_s()
Instance Public methods

returns the domain name as a string.

The domain name doesn't have a trailing dot even if the name object is absolute.

Example:

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"
doc_ruby_on_rails
2015-05-05 14:03:59
Comments
Leave a Comment

Please login to continue.