Hello there,

I'm having a problem with a tutorial to ping whatever.
I have snowleopard and both ruby's both give the same error:

uninitialized constant Net::PingExternal (NameError)

here is the code i'm using:

require 'rubygems'
require 'net/ping'
if Net::PingExternal.new('localhost').ping
  puts 'Localhost OK'
else
  puts 'Localhost NO respons'
end


i dont know what to do.
I cleaned en update macports
updated  rubygems and rubygems1.9
reinstalled ruby 1.8.7 and ruby1.9

Some help woud be nice thx
-- 
Posted via http://www.ruby-forum.com/.