module Rack::Ketai::Carrier

Public Class Methods

load(env) click to toggle source
# File lib/egalite/keitai/rack/ketai/carrier.rb, line 9
def self.load(env)
  constants.each do |const|
    c = self.const_get(const)
    return c.new(env) if c::USER_AGENT_REGEXP && env['HTTP_USER_AGENT'] =~ c::USER_AGENT_REGEXP
  end
  nil
end