Project

General

Profile

Actions

Feature #11527

open

IPAddr#mask_addr isn't a method

Added by foca (Nicolás Sanguinetti) over 8 years ago. Updated over 5 years ago.

Status:
Assigned
Target version:
-
[ruby-core:<unknown>]

Description

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?


Related issues 1 (0 open1 closed)

Related to Ruby master - Feature #11210: IPAddr has no public method to get the current subnet maskClosedknu (Akinori MUSHA)Actions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0