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.
22 23 24 25 26 |
# File 'lib/dry/validation/predicate_registry.rb', line 22 def initialize(*args) super(*args[0..1]) @schema = args.last freeze end |
Instance Attribute Details
#schema ⇒ Object (readonly)
Returns the value of attribute schema.
20 21 22 |
# File 'lib/dry/validation/predicate_registry.rb', line 20 def schema @schema end |