method

prefix

ruby latest stable - Class: IPAddr
prefix()
public

Returns the prefix length in bits for the ipaddr.