Exception: Id::CoercionError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/id/coercion.rb

Instance Method Summary collapse

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