Sha256: 3c52189588d99837819c49cd9582a6b7058649098829a8eccffae098d7ac301b
Contents?: true
Size: 378 Bytes
Versions: 1
Compression:
Stored size: 378 Bytes
Contents
# frozen_string_literal: true require 'active_model' class TypeValidator module Error class InvalidDefinition < ArgumentError OPTIONS = 'Options to define one: `:is_a` or `:kind_of`'.freeze def initialize(attribute) super "invalid type definition for :#{attribute} attribute. #{OPTIONS}" end private_constant :OPTIONS end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
type_validator-0.2.0 | lib/type_validator/error.rb |