Project

General

Profile

Feature #11527

IPAddr#mask_addr isn't a method

Added by foca (Nicolás Sanguinetti) about 3 years ago. Updated about 1 month ago.

Status:
Assigned
Priority:
Normal
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

Related to Ruby trunk - Feature #11210: IPAddr has no public method to get the current subnet maskAssigned

History

#1 Updated by nobu (Nobuyoshi Nakada) about 3 years ago

  • Tracker changed from Bug to Feature
  • Description updated (diff)

#3 Updated by usa (Usaku NAKAMURA) over 1 year ago

  • Related to Feature #11210: IPAddr has no public method to get the current subnet mask added

#4 [ruby-core:89752] Updated by hsbt (Hiroshi SHIBATA) about 1 month ago

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

Also available in: Atom PDF