= private = protected
mask(prefixlen)
Returns a new ipaddr built by masking IP address with the given prefixlen/netmask. (e.g. 8, 64, “255.255.255.0”, etc.)
# File lib/ipaddr.rb, line 160 def mask(prefixlen) return self.clone.mask!(prefixlen) end