Sha256: 0da53de31ec9e3c3ed1b2e35de7c50fd106f162b9b8a0c67daa84c0e94d74b46
Contents?: true
Size: 409 Bytes
Versions: 4
Compression:
Stored size: 409 Bytes
Contents
# typed: strict # frozen_string_literal: true module Vigiles module Utilities module URI extend T::Sig sig { params(url: String).returns(T.any(::URI::HTTP, ::URI::HTTPS)) } def self.parse_into_http_or_https(url) parsed_uri = ::URI.parse(url) raise unless parsed_uri.is_a?(::URI::HTTP) || parsed_uri.is_a?(::URI::HTTPS) parsed_uri end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
vigiles-0.1.5 | lib/vigiles/utilities/uri.rb |
vigiles-0.1.4 | lib/vigiles/utilities/uri.rb |
vigiles-0.1.3 | lib/vigiles/utilities/uri.rb |
vigiles-0.1.2 | lib/vigiles/utilities/uri.rb |