Class: TwitterCldr::Formatters::Base
- Inherits:
-
Object
- Object
- TwitterCldr::Formatters::Base
- Defined in:
- lib/twitter_cldr/formatters/base.rb
Direct Known Subclasses
DateTimeFormatter, NumberFormatter, PluralFormatter, TimespanFormatter
Instance Attribute Summary collapse
-
#tokenizer ⇒ Object
readonly
Returns the value of attribute tokenizer.
Instance Method Summary collapse
Instance Attribute Details
#tokenizer ⇒ Object (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, = {}) process_tokens(self.get_tokens(obj, ), obj) end |