module Schmersion::Hosts
Constants
- HOSTS
Public Class Methods
host_for_url(url)
click to toggle source
# 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