Exception: Hashie::CoercionError
- Inherits:
-
StandardError
- Object
- StandardError
- Hashie::CoercionError
- Defined in:
- lib/hashie/extensions/coercion.rb
Instance Method Summary collapse
-
#initialize(key, value, into, message) ⇒ CoercionError
constructor
A new instance of CoercionError.
Constructor Details
#initialize(key, value, into, message) ⇒ CoercionError
Returns a new instance of CoercionError.
3 4 5 |
# File 'lib/hashie/extensions/coercion.rb', line 3 def initialize(key, value, into, ) super("Cannot coerce property #{key.inspect} from #{value.class} to #{into}: #{}") end |