Module: Rack::Ketai::Carrier

Defined in:
lib/egalite/keitai/rack/ketai/carrier/emoji/emojidata.rb,
lib/egalite/keitai/rack/ketai/carrier/emoji/ausjisstrtoemojiid.rb,
lib/egalite/keitai/rack/ketai/carrier/emoji/docomosjisstrtoemojiid.rb,
lib/egalite/keitai/rack/ketai/carrier/emoji/softbankutf8strtoemojiid.rb,
lib/egalite/keitai/rack/ketai/carrier/emoji/softbankwebcodetoutf8str.rb,
lib/egalite/keitai/rack/ketai/carrier/softbank.rb,
lib/egalite/keitai/rack/ketai/carrier/abstract.rb,
lib/egalite/keitai/rack/ketai/carrier/iphone.rb,
lib/egalite/keitai/rack/ketai/carrier/docomo.rb,
lib/egalite/keitai/rack/ketai/carrier/au.rb,
lib/egalite/keitai/rack/ketai/carrier.rb

Defined Under Namespace

Classes: Abstract, Au, Docomo, IPhone, Softbank

Class Method Summary collapse

Class Method Details

.load(env) ⇒ Object



9
10
11
12
13
14
15
# 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