Exception: Num2words::UnsupportedInputError
- Inherits:
-
ArgumentError
- Object
- ArgumentError
- ArgumentError
- Num2words::UnsupportedInputError
- Defined in:
- lib/num2words/errors.rb
Instance Attribute Summary collapse
-
#input ⇒ Object
readonly
Returns the value of attribute input.
Instance Method Summary collapse
-
#initialize(input) ⇒ UnsupportedInputError
constructor
A new instance of UnsupportedInputError.
Constructor Details
#initialize(input) ⇒ UnsupportedInputError
Returns a new instance of UnsupportedInputError.
11 12 13 14 15 |
# File 'lib/num2words/errors.rb', line 11 def initialize(input) @input = input super("Unsupported input type: #{input.inspect}") end |
Instance Attribute Details
#input ⇒ Object (readonly)
Returns the value of attribute input.
9 10 11 |
# File 'lib/num2words/errors.rb', line 9 def input @input end |