Network Ruby

require 'ping'
puts "Pong!" if Ping.pingecho('http://www.google.com/', 5)