method
in_addr
![No documentation Importance_0](https://d2vfyqvduarcvs.cloudfront.net/images/importance_0.png?1349367920)
in_addr(addr)
private
Hide source
# File lib/ipaddr.rb, line 445 def in_addr(addr) if addr =~ /^\d+\.\d+\.\d+\.\d+$/ n = 0 addr.split('.').each { |i| n <<= 8 n += i.to_i } return n end return nil end