Sha256: 0a40afbc25904cbeb2c066bddbbe345ae90ae9d5c3bc03706014e83512395f7d
Contents?: true
Size: 539 Bytes
Versions: 4
Compression:
Stored size: 539 Bytes
Contents
# frozen_string_literal: true require 'dry/logic/predicates' require 'dry/types/predicate_registry' module Dry module Schema # A registry with predicate objects from `Dry::Logic::Predicates` # # @api private class PredicateRegistry < Dry::Types::PredicateRegistry # @api private def arg_list(name, *values) predicate = self[name] predicate .parameters .map(&:last) .zip(values + Array.new(predicate.arity - values.size, Undefined)) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems