do_not_reverse_lookup=

BasicSocket.do_not_reverse_lookup = bool
Class Public methods

Sets the global ::do_not_reverse_lookup flag.

The flag is used for initial value of ::do_not_reverse_lookup for each socket.

s1 = TCPSocket.new("localhost", 80)
p s1.do_not_reverse_lookup                 #=> true
BasicSocket.do_not_reverse_lookup = false
s2 = TCPSocket.new("localhost", 80)
p s2.do_not_reverse_lookup                 #=> false
p s1.do_not_reverse_lookup                 #=> true
doc_ruby_on_rails
2015-03-31 00:26:13
Comments
Leave a Comment

Please login to continue.