Raul Parolari wrote:
>> I don't think it's the second, since 1.9.2 sets 
>> BasicSocket.do_not_reverse_lookup to true by default.
>> Jruby doesn't yet, though I'm sure they'll get around to it sometime.
>> -r
> 
> Yes; I will anyhow use that line (although on the socket instance, not 
> on the class) so that there are no doubts.

It is only settable globally, AFAIK.

>> require 'socket'
=> true
>> Socket.do_not_reverse_lookup = true
=> true
>> TCPSocket.new("www.google.com",80).do_not_reverse_lookup = true
NoMethodError: undefined method `do_not_reverse_lookup=' for 
#<TCPSocket:0x7f65b8da0000>
  from (irb):4
  from :0
-- 
Posted via http://www.ruby-forum.com/.