[ruby-core:89752] [Ruby trunk Feature#11527][Assigned] IPAddr#mask_addr isn't a method

From: hsbt@...
Date: 2018-11-07 16:12:14 UTC
List: ruby-core #89752
Issue #11527 has been updated by hsbt (Hiroshi SHIBATA).

Status changed from Open to Assigned
Assignee set to knu (Akinori MUSHA)

----------------------------------------
Feature #11527: IPAddr#mask_addr isn't a method
https://bugs.ruby-lang.org/issues/11527#change-74796

* Author: foca (Nicol叩s Sanguinetti)
* Status: Assigned
* Priority: Normal
* Assignee: knu (Akinori MUSHA)
* Target version: 
----------------------------------------
Right now there's no way to get the current value of an IP address's mask from an IPAddr instance. While there's an instance variable (`@mask_addr`), there's no attribute reader to get it's value, and relying on reading the instance variable isn't pretty nice for a stdlib (stable as it might be).

Is there any particular reason why this is not public, or would a patch/pull request adding the corresponding `attr_reader` be accepted?



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

Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

In This Thread

Prev Next