Class: Dry::Logic::Rule::Check

Inherits:
Dry::Logic::Rule show all
Defined in:
lib/dry/logic/rule/check.rb

Instance Attribute Summary

Attributes inherited from Dry::Logic::Rule

#name, #predicate

Instance Method Summary collapse

Methods inherited from Dry::Logic::Rule

#and, #curry, #initialize, #negation, #new, #or, #predicate_id, #then, #to_ary, #xor

Constructor Details

This class inherits a constructor from Dry::Logic::Rule

Instance Method Details

#callObject



6
7
8
# File 'lib/dry/logic/rule/check.rb', line 6

def call(*)
  Logic.Result(nil, result.call, self)
end

#typeObject



10
11
12
# File 'lib/dry/logic/rule/check.rb', line 10

def type
  :check
end