Class: Reorm::Validator
- Inherits:
-
Object
- Object
- Reorm::Validator
- Defined in:
- lib/reorm/validators/validator.rb
Direct Known Subclasses
ExclusionValidator, InclusionValidator, MaximumLengthValidator, MinimumLengthValidator, PresenceValidator
Instance Attribute Summary collapse
-
#field ⇒ Object
readonly
Returns the value of attribute field.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
Instance Method Summary collapse
-
#initialize(message, *field) ⇒ Validator
constructor
A new instance of Validator.
Constructor Details
Instance Attribute Details
#field ⇒ Object (readonly)
Returns the value of attribute field.
11 12 13 |
# File 'lib/reorm/validators/validator.rb', line 11 def field @field end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
11 12 13 |
# File 'lib/reorm/validators/validator.rb', line 11 def @message end |