Sha256: 8f03685cd5c07e3b782ba605dac5222124ba9cf9ef60c57fe5749d5ac9f37a50
Contents?: true
Size: 432 Bytes
Versions: 2
Compression:
Stored size: 432 Bytes
Contents
# frozen_string_literal: true require 'active_model' class TypeValidator module Error class InvalidDefinition < ArgumentError OPTIONS = 'Options to define one: :instance_of, :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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
type_validator-0.11.0 | lib/type_validator/error.rb |
type_validator-0.10.0 | lib/type_validator/error.rb |