Class: TwitterCldr::Formatters::DecimalFormatter

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

Instance Attribute Summary

Attributes inherited from NumberFormatter

#data_reader

Attributes inherited from Formatter

#data_reader

Instance Method Summary collapse

Methods inherited from NumberFormatter

#initialize, #truncate_number

Methods inherited from Formatter

#initialize

Constructor Details

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

Instance Method Details

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



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

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