Exception: ParamsReady::CoercionError

Inherits:
RuntimeError
  • Object
show all
Defined in:
lib/params_ready/error.rb

Instance Method Summary collapse

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