Sha256: ffdda2496194b151c03060979ae487da1a2685a160da27b883035cb35cab4ebb

Contents?: true

Size: 187 Bytes

Versions: 1

Compression:

Stored size: 187 Bytes

Contents

require "httparty"

module Alephant
  module Scout
    module Url
      def self.valid?(url)
        HTTParty.head(url).code == 200
      rescue
        false
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
alephant-scout-1.0.0 lib/alephant/scout/url.rb