Exception: Plurimath::Errors::UnsupportedBase
- Inherits:
-
Plurimath::Error
- Object
- StandardError
- Plurimath::Error
- Plurimath::Errors::UnsupportedBase
- Defined in:
- lib/plurimath/errors/unsupported_base.rb
Instance Method Summary collapse
-
#initialize(base, supported_bases) ⇒ UnsupportedBase
constructor
A new instance of UnsupportedBase.
- #message ⇒ Object
Constructor Details
#initialize(base, supported_bases) ⇒ UnsupportedBase
Returns a new instance of UnsupportedBase.
6 7 8 9 10 |
# File 'lib/plurimath/errors/unsupported_base.rb', line 6 def initialize(base, supported_bases) @base = base @supported = supported_bases.keys.join(", ") super() end |
Instance Method Details
#message ⇒ Object
12 13 14 15 |
# File 'lib/plurimath/errors/unsupported_base.rb', line 12 def "[plurimath] Unsupported base `#{@base}` for number formatting. " \ "[plurimath] The formatter `:base` option must be one of: #{@supported}." end |