[ruby-core:70817] [Ruby trunk - Bug #11527] [Open] IPAddr#mask_addr isn't a method

From: contacto@...
Date: 2015-09-15 17:46:38 UTC
List: ruby-core #70817
Issue #11527 has been reported by Nicol=C3=A1s Sanguinetti.

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

* Author: Nicol=C3=A1s Sanguinetti
* Status: Open
* Priority: Normal
* Assignee:=20
* ruby -v: all
* Backport: 2.0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN
----------------------------------------
Right now there's no way to get the current value of an IP address's mask f=
rom 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 i=
nstance 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/pul=
l request adding the corresponding attr_reader be accepted?



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

In This Thread

Prev Next