Project

General

Profile

Actions

Feature #11666

closed

IPAddr#private?

Added by Glass_saga (Masaki Matsushita) almost 6 years ago. Updated almost 4 years ago.

Status:
Closed
Priority:
Normal
Target version:
-
[ruby-core:71384]

Description

I propose a new feature: IPAddr#private?.

Example:

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

Files

patch.diff (1.58 KB) patch.diff Glass_saga (Masaki Matsushita), 11/08/2015 07:19 AM

Related issues

Has duplicate Ruby master - Feature #10912: Add method(s) to IPAddr for determining whether an address is link localClosedknu (Akinori MUSHA)Actions
Actions

Also available in: Atom PDF