Sha256: edd89b22992fd84bf7df498ea4882a2b1f3182235a79d8b28d5a18e63d222802
Contents?: true
Size: 422 Bytes
Versions: 4
Compression:
Stored size: 422 Bytes
Contents
# frozen_string_literal: true require 'active_model' class TypeValidator module Error class InvalidDefinition < ArgumentError OPTIONS = 'Options to define one: `:is_a`/`:kind_of`, :respond_to, :klass, :array_of or :array_with'.freeze def initialize(attribute) super "invalid type definition for :#{attribute} attribute. #{OPTIONS}" end private_constant :OPTIONS end end end
Version data entries
4 entries across 4 versions & 1 rubygems