lib/internet.rb in dev_commands-0.0.49 vs lib/internet.rb in dev_commands-0.0.50
- old
+ new
@@ -1,17 +1,17 @@
-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
+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
\ No newline at end of file