lib/imgurr/command.rb
# Public: Checks is there's an active internet connection
#
# Returns true or false
Checks is there's an active internet connection
Returns true or false
Checks is there ' s an active internet connection Returns true or false
def internet_connection?
        begin
          true if open("http://www.google.com/")
        rescue
          false
        end
      end
def internet_connection? begin true if open ( "http://www.google.com/" ) rescue false end end
Public: Checks is there's an active internet connection
Returns true or false
Public : Checks is there ' s an active internet connection Returns true or false