Registry / utility / dry-logic

dry-logic

JSON →
library1.6.0rbrubygemsunverified

Predicate logic with rule composition for building complex validation and constraint systems.

gem install dry-logic
INSTALL
IMPORT
SIG · DRY-LOGIC
D
dry-logic
utilityrubyv1.6.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Dry::Logic
require 'dry/logic'

Create and evaluate a predicate rule

require 'dry/logic' predicate = Dry::Logic::Predicates[:gt?].curry(18) rule = Dry::Logic::Rule::Predicate.new(predicate) rule.call(21) # => Success
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.6.0latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
10 hits · last 30 days
node
10
Resources
dry-logic — gem install dry-logic · libregistry