Sha256: ff704e23f563f7f30642d64ef8b3663c2a352ea5150bccb70d901e3bdabef412
Contents?: true
Size: 340 Bytes
Versions: 5
Compression:
Stored size: 340 Bytes
Contents
# frozen_string_literal: true require 'schmersion/hosts/github' module Schmersion module Hosts HOSTS = [GitHub].freeze class << self def host_for_url(url) HOSTS.each do |host| if host.suitable?(url) return host.new(url) end end nil end end end end
Version data entries
5 entries across 5 versions & 1 rubygems