/ Published in: Ruby
Expand |
Embed | Plain Text
# encoding = utf-8 require 'net/ping' Net::Ping::HTTP.new('http://example.com') do |http| http.ping ? puts('ok!') : puts(http.exception) end
You need to login to post a comment.
Shamaoke on 03/10/11
1 person have marked this snippet as a favorite
# encoding = utf-8 require 'net/ping' Net::Ping::HTTP.new('http://example.com') do |http| http.ping ? puts('ok!') : puts(http.exception) end
You need to login to post a comment.