Class: Plurimath::Formatter::LocalizedNumber

Inherits:
TwitterCldr::Localized::LocalizedNumber
  • Object
show all
Defined in:
lib/plurimath/formatter/localized_number.rb

Instance Method Summary collapse

Instance Method Details

#to_s(options = {}) ⇒ Object



4
5
6
7
8
9
10
# File 'lib/plurimath/formatter/localized_number.rb', line 4

def to_s(options = {})
  opts = { type: @type, format: @format }.merge(options)

  NumberDataReader
    .new(locale, opts)
    .format_number(base_obj, opts)
end