method
in_addr
in_addr(addr)
private
Hide source
# File lib/ipaddr.rb, line 530 def in_addr(addr) if addr =~ /^\d+\.\d+\.\d+\.\d+$/ return addr.split('.').inject(0) { |i, s| i << 8 | s.to_i } end return nil end