Class: Funicular::Model::Validations::EachValidator
- Inherits:
-
Object
- Object
- Funicular::Model::Validations::EachValidator
- Defined in:
- sig/validations.rbs
Overview
Base class for attribute validators.
Direct Known Subclasses
AbsenceValidator, AcceptanceValidator, ConfirmationValidator, ExclusionValidator, FormatValidator, InclusionValidator, LengthValidator, NumericalityValidator, PresenceValidator
Instance Attribute Summary collapse
-
#attributes ⇒ Array[Symbol]
readonly
Returns the value of attribute attributes.
-
#options ⇒ Hash[Symbol, untyped]
readonly
Returns the value of attribute options.
Instance Method Summary collapse
- #blank? ⇒ Boolean
-
#initialize ⇒ EachValidator
constructor
A new instance of EachValidator.
- #kind ⇒ Symbol
- #present? ⇒ Boolean
- #validate ⇒ void
- #validate_each ⇒ void
Constructor Details
#initialize ⇒ EachValidator
Returns a new instance of EachValidator.
33 |
# File 'sig/validations.rbs', line 33
def initialize: (attributes: Array[Symbol], **untyped options) -> void
|
Instance Attribute Details
#attributes ⇒ Array[Symbol] (readonly)
Returns the value of attribute attributes.
30 31 32 |
# File 'sig/validations.rbs', line 30 def attributes @attributes end |
#options ⇒ Hash[Symbol, untyped] (readonly)
Returns the value of attribute options.
31 32 33 |
# File 'sig/validations.rbs', line 31 def @options end |
Instance Method Details
#blank? ⇒ Boolean
39 |
# File 'sig/validations.rbs', line 39
def blank?: (untyped value) -> bool
|
#kind ⇒ Symbol
34 |
# File 'sig/validations.rbs', line 34
def kind: () -> Symbol
|
#present? ⇒ Boolean
40 |
# File 'sig/validations.rbs', line 40
def present?: (untyped value) -> bool
|
#validate ⇒ void
This method returns an undefined value.
35 |
# File 'sig/validations.rbs', line 35
def validate: (untyped record) -> void
|
#validate_each ⇒ void
This method returns an undefined value.
36 |
# File 'sig/validations.rbs', line 36
def validate_each: (untyped record, Symbol attribute, untyped value) -> void
|