Cory Cory wrote in post #647411:
> Does anyone know a way to test to see if the computer is connected to
> the internet in Ruby?

Apologies for necro threading but let my answer help other people coming 
to this link via google.

if system("ping google.com")
puts "Connected to the internet."
else puts "No internet connection."
end

-- 
Posted via http://www.ruby-forum.com/.