Issue #11700 has been reported by Nobuyoshi Nakada.

----------------------------------------
Feature #11700: positive flags for reverse lookup to socket
https://bugs.ruby-lang.org/issues/11700

* Author: Nobuyoshi Nakada
* Status: Open
* Priority: Normal
* Assignee: 
----------------------------------------
Now `BasicSocket` has `do_not_reverse_lookup` global and per-socket attributes.
Negative flag makes less readability.
So I propose the inverse and positive attributes,

* `BasicSocket.reverse_lookup`
* `BasicSocket.reverse_lookup=`
* `BasicSocket#reverse_lookup`
* `BasicSocket#reverse_lookup=`

These methods share the same flags with `do_not_reverse_lookup`, just invert input/output values.

[patch](https://github.com/nobu/ruby/tree/feature/Socket%23reverse_lookup)




-- 
https://bugs.ruby-lang.org/