Exception: Plurimath::Formatter::UnsupportedLocale
- Defined in:
- lib/plurimath/errors/formatter/unsupported_locale.rb
Instance Method Summary collapse
-
#initialize(locale, supported_locales) ⇒ UnsupportedLocale
constructor
A new instance of UnsupportedLocale.
- #message ⇒ Object
Constructor Details
#initialize(locale, supported_locales) ⇒ UnsupportedLocale
Returns a new instance of UnsupportedLocale.
6 7 8 9 10 |
# File 'lib/plurimath/errors/formatter/unsupported_locale.rb', line 6 def initialize(locale, supported_locales) @locale = locale @supported = supported_locales.map(&:inspect).join(", ") super() end |
Instance Method Details
#message ⇒ Object
12 13 14 15 |
# File 'lib/plurimath/errors/formatter/unsupported_locale.rb', line 12 def "[plurimath] Unsupported locale #{@locale.inspect}. " \ "Supported locales are: #{@supported}." end |