Class: Dry::Logic::Result::Wrapped

Inherits:
Dry::Logic::Result show all
Defined in:
lib/dry/logic/result.rb

Instance Attribute Summary

Attributes inherited from Dry::Logic::Result

#input, #name, #rule, #value

Instance Method Summary collapse

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

#to_aryObject Also known as: to_a



71
72
73
# File 'lib/dry/logic/result.rb', line 71

def to_ary
  [:input, [name, nil, [rule.to_ary]]]
end