Issue #11666 has been updated by Masaki Matsushita.


I think private? is better than private_addr? because private_addr? seems to be redundant in following code:

```ruby
IPAddr.new("192.168.1.1").private_addr?
```

----------------------------------------
Feature #11666: IPAddr#private?
https://bugs.ruby-lang.org/issues/11666#change-54855

* Author: Masaki Matsushita
* Status: Open
* Priority: Normal
* Assignee: Masaki Matsushita
----------------------------------------
I propose a new feature: IPAddr#private?.

Example:

```ruby
IPAddr.new("192.168.1.1").private? #=> true.
```

---Files--------------------------------
patch.diff (1.58 KB)


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