Sha256: 3f8c39c97f228767b5225a883adc2afe5cf3a313984642978ed497511520908e
Contents?: true
Size: 184 Bytes
Versions: 1
Compression:
Stored size: 184 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 end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
vagrant-clusterfuck-0.0.1 | lib/clusterfuck/core_ext/ipaddr.rb |