Sha256: e867bca00983e8fc0bd9f41dd1ed0778cc41645937be9793c64403149b5bb8f7
Contents?: true
Size: 241 Bytes
Versions: 16
Compression:
Stored size: 241 Bytes
Contents
require 'open-uri' class Internet @@available=nil def self.available? return @@available if !@@available.nil? begin @@available = true if open('http://www.google.com') rescue @@available = false end @@available end end
Version data entries
16 entries across 16 versions & 1 rubygems