Ruby 1.8 provides Ping.pingecho, but it was removed in 1.9. So we try requiring it, and if that fails, define it ourselves.
LOCALHOST_ALIASES | = | %w( localhost 127.0.0.1 0.0.0.0 ) | ||
YAML | = | begin require 'psych' | Attempt to use psych if it is available. | |
Ping | = | ::Ping | ||
BasicObject | = | ::BasicObject |