Class: TwitterCldr::Formatters::PercentFormatter
- Inherits:
-
NumberFormatter
- Object
- Formatter
- NumberFormatter
- TwitterCldr::Formatters::PercentFormatter
- Defined in:
- lib/twitter_cldr/formatters/numbers/percent_formatter.rb
Constant Summary collapse
- DEFAULT_PERCENT_SIGN =
"%"
Instance Attribute Summary
Attributes inherited from NumberFormatter
Attributes inherited from Formatter
Instance Method Summary collapse
Methods inherited from NumberFormatter
Methods inherited from Formatter
Constructor Details
This class inherits a constructor from TwitterCldr::Formatters::NumberFormatter
Instance Method Details
#format(tokens, number, options = {}) ⇒ Object
12 13 14 |
# File 'lib/twitter_cldr/formatters/numbers/percent_formatter.rb', line 12 def format(tokens, number, = {}) super(tokens, number, ).gsub('ยค', data_reader.symbols[:percent_sign] || DEFAULT_PERCENT_SIGN) end |