module CMDx::Coercions::Integer

def call(value, _options = {})

def call(value, _options = {})
  Integer(value)
rescue ArgumentError, TypeError
  raise CoercionError, I18n.t(
    "cmdx.coercions.into_an",
    type: "integer",
    default: "could not coerce into an integer"
  )
end