Class: Dry::Logic::Rule::Check
- Inherits:
-
Dry::Logic::Rule
- Object
- Dry::Logic::Rule
- Dry::Logic::Rule::Check
- Defined in:
- lib/dry/logic/rule/check.rb
Instance Attribute Summary
Attributes inherited from Dry::Logic::Rule
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
#call ⇒ Object
6 7 8 |
# File 'lib/dry/logic/rule/check.rb', line 6 def call(*) Logic.Result(nil, result.call, self) end |
#type ⇒ Object
10 11 12 |
# File 'lib/dry/logic/rule/check.rb', line 10 def type :check end |