lib/PipBot.rb
# Returns true if specified url string is valid.

Returns true if specified url string is valid.
Returns true if specified url string is valid .
def valid_url?(url)
    uri = URI.parse(url)
    return true if uri.is_a?(URI::HTTP) || uri.is_a?(URI::HTTPS)
    false
  rescue
    false
  end
def valid_url? ( url ) uri = URI . parse ( url ) return true if uri . is_a? ( URI :: HTTP ) || uri . is_a? ( URI :: HTTPS ) false rescue false end
Returns true if specified url string is valid.
Returns true if specified url string is valid .
url
<not_specific>