Sha256: 5f83130e215d09e88d53f20a3257ee9e15ec017cc0a8fa58cef064892335559e
Contents?: true
Size: 216 Bytes
Versions: 6
Compression:
Stored size: 216 Bytes
Contents
class IPAddr def netmask _to_string(@mask_addr) end def cidr IPAddr.new(netmask).to_i.to_s(2).count("1") end def to_cidr to_string + "/" + cidr.to_s end def addr to_string end end
Version data entries
6 entries across 6 versions & 1 rubygems