Class: Plurimath::Configuration
- Inherits:
-
Object
- Object
- Plurimath::Configuration
- Defined in:
- lib/plurimath/configuration.rb
Constant Summary collapse
- DEFAULT_DECIMAL =
"."
Instance Attribute Summary collapse
-
#locale ⇒ Object
Returns the value of attribute locale.
-
#number_formatter ⇒ Object
Returns the value of attribute number_formatter.
Instance Method Summary collapse
Instance Attribute Details
#locale ⇒ Object
Returns the value of attribute locale.
7 8 9 |
# File 'lib/plurimath/configuration.rb', line 7 def locale @locale end |
#number_formatter ⇒ Object
Returns the value of attribute number_formatter.
7 8 9 |
# File 'lib/plurimath/configuration.rb', line 7 def number_formatter @number_formatter end |
Instance Method Details
#decimal ⇒ Object
13 14 15 |
# File 'lib/plurimath/configuration.rb', line 13 def decimal Formatter::SupportedLocales.decimal_for(locale, default: DEFAULT_DECIMAL) end |
#deprecation ⇒ Object
9 10 11 |
# File 'lib/plurimath/configuration.rb', line 9 def deprecation Deprecation end |