/ 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.
