Module: Schmersion::Hosts
- Defined in:
- lib/schmersion/hosts.rb,
lib/schmersion/hosts/github.rb
Defined Under Namespace
Classes: GitHub
Constant Summary collapse
- HOSTS =
[GitHub].freeze
Class Method Summary collapse
Class Method Details
.host_for_url(url) ⇒ Object
12 13 14 15 16 17 18 19 20 |
# File 'lib/schmersion/hosts.rb', line 12 def host_for_url(url) HOSTS.each do |host| if host.suitable?(url) return host.new(url) end end nil end |