Module: Vigiles::Utilities::URI
- Extended by:
- T::Sig
- Defined in:
- lib/vigiles/utilities/uri.rb
Class Method Summary collapse
Class Method Details
.parse_into_http_or_https(url) ⇒ Object
10 11 12 13 14 15 |
# File 'lib/vigiles/utilities/uri.rb', line 10 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 |