Exception: Num2words::UnsupportedOptionError
- Inherits:
-
ArgumentError
- Object
- ArgumentError
- ArgumentError
- Num2words::UnsupportedOptionError
- Defined in:
- lib/num2words/errors.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(name:, value:) ⇒ UnsupportedOptionError
constructor
A new instance of UnsupportedOptionError.
Constructor Details
#initialize(name:, value:) ⇒ UnsupportedOptionError
Returns a new instance of UnsupportedOptionError.
21 22 23 24 25 26 |
# File 'lib/num2words/errors.rb', line 21 def initialize(name:, value:) @name = name @value = value super("Unsupported #{name} option: #{value.inspect}") end |
Instance Attribute Details
#name ⇒ Object (readonly)
Returns the value of attribute name.
19 20 21 |
# File 'lib/num2words/errors.rb', line 19 def name @name end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
19 20 21 |
# File 'lib/num2words/errors.rb', line 19 def value @value end |