Issue #11210 has been reported by Herwin ..

----------------------------------------
Feature #11210: IPAddr has no public method to get the current subnet mask
https://bugs.ruby-lang.org/issues/11210

* Author: Herwin .
* Status: Open
* Priority: Low
* Assignee: 
----------------------------------------
Both to_s and to_string omit the subnet mask of an IP address. The only way to query it via public methods is to manually parse the output of inspect. 



-- 
https://bugs.ruby-lang.org/