Class: HashValidator::Validations::Many
- Inherits:
-
Object
- Object
- HashValidator::Validations::Many
- Defined in:
- lib/hash_validator/validations/many.rb
Instance Attribute Summary collapse
-
#validation ⇒ Object
readonly
Returns the value of attribute validation.
Instance Method Summary collapse
-
#initialize(validation) ⇒ Many
constructor
A new instance of Many.
Constructor Details
#initialize(validation) ⇒ Many
Returns a new instance of Many.
4 5 6 |
# File 'lib/hash_validator/validations/many.rb', line 4 def initialize(validation) @validation = validation end |
Instance Attribute Details
#validation ⇒ Object (readonly)
Returns the value of attribute validation.
3 4 5 |
# File 'lib/hash_validator/validations/many.rb', line 3 def validation @validation end |