Class: Dry::Validation::PredicateRegistry::Bound

Inherits:
Dry::Validation::PredicateRegistry show all
Defined in:
lib/dry/validation/predicate_registry.rb

Instance Attribute Summary collapse

Attributes inherited from Dry::Validation::PredicateRegistry

#external, #predicates

Instance Method Summary collapse

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

#schemaObject (readonly)

Returns the value of attribute schema.



20
21
22
# File 'lib/dry/validation/predicate_registry.rb', line 20

def schema
  @schema
end