class Dry::Schema::Macros::Key

def to_rule

Other tags:
    Api: - private

Returns:
  • (Dry::Logic::Rule) -
def to_rule
  if trace.captures.empty?
    super
  else
    [super, trace.to_rule(name)].reduce(operation)
  end
end