Exception: Id::CoercionError
- Inherits:
-
StandardError
- Object
- StandardError
- Id::CoercionError
- Defined in:
- lib/id/coercion.rb
Instance Method Summary collapse
-
#initialize(from, to) ⇒ CoercionError
constructor
A new instance of CoercionError.
Constructor Details
#initialize(from, to) ⇒ CoercionError
Returns a new instance of CoercionError.
29 30 31 |
# File 'lib/id/coercion.rb', line 29 def initialize((from, to)) super "No available coercion from #{from} to #{to}" end |