Method: #cidr_to_str

Defined in:
lib/nicinfo/cidrs.rb

#cidr_to_str(ip, mask, type) ⇒ Object



9
10
11
12
# File 'lib/nicinfo/cidrs.rb', line 9

def cidr_to_str(ip, mask, type)
  ip = IPAddr.new(ip, type)
  return "%s/%i" % [ip.to_s, mask]
end