Exception: Paramore::ArrayExpected
- Inherits:
-
StandardError
- Object
- StandardError
- Paramore::ArrayExpected
- Defined in:
- lib/paramore/errors.rb
Instance Method Summary collapse
-
#initialize(param_name, param) ⇒ ArrayExpected
constructor
A new instance of ArrayExpected.
Constructor Details
#initialize(param_name, param) ⇒ ArrayExpected
Returns a new instance of ArrayExpected.
20 21 22 |
# File 'lib/paramore/errors.rb', line 20 def initialize(param_name, param) super("Expected #{Paramore::ErrorFieldName(param_name)} to be an array, received #{param.class} instead!") end |