Ruby Issue Tracking System: Issueshttps://bugs.ruby-lang.org/https://bugs.ruby-lang.org/favicon.ico?17113305112017-05-29T09:57:09ZRuby Issue Tracking System
Redmine Ruby master - Feature #13610 (Assigned): IPAddr doesn't provide helpful methods to get the subnet...https://bugs.ruby-lang.org/issues/136102017-05-29T09:57:09Zx89 (David John)ruby-lang@vaunt.eu
<p>I've implemented it myself using some "wild" code around the .inspect or default return from an IPAddr object from ipadr.rb</p>
<p>It would be nice to, once having loaded an IP range, to then be able to get its subnet, its IP and its CIDR.</p>
<p>I've created a PR: <a href="https://github.com/ruby/ruby/pull/1636" class="external">https://github.com/ruby/ruby/pull/1636</a> (although it's failing, not entirely sure why as Travis works fine on localhost!).</p>
<p>David</p>