Class: Dry::Logic::Result::LazyValue
- Inherits:
-
Dry::Logic::Result
- Object
- Dry::Logic::Result
- Dry::Logic::Result::LazyValue
- Defined in:
- lib/dry/logic/result.rb
Instance Attribute Summary
Attributes inherited from Dry::Logic::Result
Instance Method Summary collapse
- #input ⇒ Object
- #to_ary ⇒ Object (also: #to_a)
Methods inherited from Dry::Logic::Result
#>, #and, #call, #curry, #failure?, #initialize, #negated, #or, #success?, #xor
Constructor Details
This class inherits a constructor from Dry::Logic::Result
Instance Method Details
#input ⇒ Object
65 66 67 |
# File 'lib/dry/logic/result.rb', line 65 def input success? ? rule.evaluate_input(@input) : @input end |
#to_ary ⇒ Object Also known as: to_a
60 61 62 |
# File 'lib/dry/logic/result.rb', line 60 def to_ary [:input, [rule.name, input, [rule.to_ary]]] end |