Exception: ParamsReady::CoercionError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- ParamsReady::CoercionError
- Defined in:
- lib/params_ready/error.rb
Instance Method Summary collapse
-
#initialize(input, class_name) ⇒ CoercionError
constructor
A new instance of CoercionError.
Constructor Details
#initialize(input, class_name) ⇒ CoercionError
Returns a new instance of CoercionError.
27 28 29 |
# File 'lib/params_ready/error.rb', line 27 def initialize(input, class_name) super "can't coerce '#{input}' into #{class_name}" end |