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
[], #[], #arg_list, #ensure_valid_predicate, #key?, #new
Constructor Details
#initialize(*args) ⇒ Bound
Returns a new instance of Bound.
15 16 17 18 19 |
# File 'lib/dry/validation/predicate_registry.rb', line 15 def initialize(*args) super(*args[0..1]) @schema = args.last freeze end |
Instance Attribute Details
#schema ⇒ Object (readonly)
Returns the value of attribute schema.
13 14 15 |
# File 'lib/dry/validation/predicate_registry.rb', line 13 def schema @schema end |