Issue #13610 has been updated by shyouhei (Shyouhei Urabe).

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

----------------------------------------
Feature #13610: IPAddr doesn't provide helpful methods to get the subnet or IP address
https://bugs.ruby-lang.org/issues/13610#change-67370

* Author: x89 (David John)
* Status: Assigned
* Priority: Normal
* Assignee: knu (Akinori MUSHA)
* Target version: 
----------------------------------------
I've implemented it myself using some "wild" code around the .inspect or default return from an IPAddr object from ipadr.rb

It would be nice to, once having loaded an IP range, to then be able to get its subnet, its IP and its CIDR.

I've created a PR: https://github.com/ruby/ruby/pull/1636 (although it's failing, not entirely sure why as Travis works fine on localhost!).

David



-- 
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>