Class: TwitterCldr::Formatters::DecimalFormatter

Inherits:
NumberFormatter show all
Defined in:
lib/twitter_cldr/formatters/numbers/decimal_formatter.rb

Constant Summary

Constants inherited from NumberFormatter

NumberFormatter::DEFAULT_SYMBOLS

Instance Attribute Summary

Attributes inherited from NumberFormatter

#symbols

Attributes inherited from Base

#tokenizer

Instance Method Summary collapse

Methods inherited from NumberFormatter

#initialize

Constructor Details

This class inherits a constructor from TwitterCldr::Formatters::NumberFormatter

Instance Method Details

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



9
10
11
12
13
# File 'lib/twitter_cldr/formatters/numbers/decimal_formatter.rb', line 9

def format(number, options = {})
  super(number, options)
rescue TypeError, ArgumentError
  number
end