Class: Rack::Ketai::Carrier::Abstract

Inherits:
Object
  • Object
show all
Defined in:
lib/egalite/keitai/rack/ketai/carrier/emoji/emojidata.rb,
lib/egalite/keitai/rack/ketai/carrier/abstract.rb,
lib/egalite/keitai/rack/ketai/carrier/abstract.rb

Direct Known Subclasses

Au, Docomo, IPhone, Softbank

Defined Under Namespace

Classes: Filter, SjisFilter

Constant Summary collapse

USER_AGENT_REGEXP =
nil
@@filter_table =
{ }

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(env) ⇒ Abstract

Returns a new instance of Abstract.



21
22
23
# File 'lib/egalite/keitai/rack/ketai/carrier/abstract.rb', line 21

def initialize(env)
  @env = env.clone
end

Class Method Details

.filtersObject



16
17
18
# File 'lib/egalite/keitai/rack/ketai/carrier/abstract.rb', line 16

def filters
  @@filter_table[self] ||= []
end

.filters=(obj) ⇒ Object



12
13
14
# File 'lib/egalite/keitai/rack/ketai/carrier/abstract.rb', line 12

def filters=(obj)
  @@filter_table[self] = obj.is_a?(Array) ? obj : [obj]
end

Instance Method Details

#filtersObject



27
28
29
# File 'lib/egalite/keitai/rack/ketai/carrier/abstract.rb', line 27

def filters
  self.class.filters
end