class Ocawari::StrategyDelegator
Constants
- STRATEGY_MAP
Public Class Methods
identify(url)
click to toggle source
# File lib/ocawari/strategy_delegator.rb, line 42 def self.identify(url) STRATEGY_MAP.each do |regex, strategy| if regex.match?(url) return Ocawari::Strategy.const_get(strategy) end end Ocawari::Strategy::NoMatch end