Class: TwitterCldr::Formatters::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/twitter_cldr/formatters/base.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#tokenizerObject (readonly)

Returns the value of attribute tokenizer


9
10
11
# File 'lib/twitter_cldr/formatters/base.rb', line 9

def tokenizer
  @tokenizer
end

Instance Method Details

#format(obj, options = {}) ⇒ Object


11
12
13
# File 'lib/twitter_cldr/formatters/base.rb', line 11

def format(obj, options = {})
  process_tokens(self.get_tokens(obj, options), obj)
end