Sha256: f8e3068506aaadc42b6a9f7c7248e8284b7dcf6ba7557ccf50539264e99dc473
Contents?: true
Size: 712 Bytes
Versions: 2
Compression:
Stored size: 712 Bytes
Contents
require 'dry/logic/rule_compiler' require 'dry/schema/predicate_registry' module Dry module Schema # Extended rule compiler used internally by the DSL # # @api private class Compiler < Logic::RuleCompiler # Builds a default compiler instance with custom predicate registry # # @return [Compiler] # # @api private def self.new(predicates = PredicateRegistry.new) super end # Return true if a given predicate is supported by this compiler # # @param [Symbol] predicate # # @return [Boolean] # # @api private def supports?(predicate) predicates.key?(predicate) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
dry-schema-0.1.1 | lib/dry/schema/compiler.rb |
dry-schema-0.1.0 | lib/dry/schema/compiler.rb |