what's the proper way of getting to "www.nbc.com."? is it
with the to_s method?
obj.to_s
--
Posted via http://www.ruby-forum.com/.
Override the to_s method in your class and define it to print out the value
of variable. Then you can call to_s method on the object.
--
Mayank Kohaley
Is that output from irb? irb uses the "inspect" method to display a
value.
> what's the proper way of getting to "www.nbc.com."?
Depends entirely on the class in question. Look at the documentation for
Dnsruby::Name, or at the source code, to see what methods are available.