double-z
4/11/2013 - 4:49 AM

strip dots ip addr

strip dots ip addr

'1.2.3.4'.split('.').inject(0) {|total,value| (total << 8 ) + value.to_i}