Class: Dry::Validation::PredicateRegistry::Bound
- Inherits:
-
Dry::Validation::PredicateRegistry
- Object
- Dry::Validation::PredicateRegistry
- Dry::Validation::PredicateRegistry::Bound
- Defined in:
- lib/dry/validation/predicate_registry.rb
Instance Attribute Summary collapse
-
#schema ⇒ Object
readonly
Returns the value of attribute schema.
Attributes inherited from Dry::Validation::PredicateRegistry
Instance Method Summary collapse
-
#initialize(*args) ⇒ Bound
constructor
A new instance of Bound.
Methods inherited from Dry::Validation::PredicateRegistry
[], #[], #ensure_valid_predicate, #key?, #new
Constructor Details
#initialize(*args) ⇒ Bound
Returns a new instance of Bound.
10 11 12 13 14 |
# File 'lib/dry/validation/predicate_registry.rb', line 10 def initialize(*args) super(*args[0..1]) @schema = args.last freeze end |
Instance Attribute Details
#schema ⇒ Object (readonly)
Returns the value of attribute schema.
8 9 10 |
# File 'lib/dry/validation/predicate_registry.rb', line 8 def schema @schema end |