Sha256: 300d63f1a0403ad94398f497325209b9d92771bad9000072d8e14dc3f0a9a29a

Contents?: true

Size: 228 Bytes

Versions: 4

Compression:

Stored size: 228 Bytes

Contents

module Dry
  module Logic
    class Result::Set < Result::Multi
      def to_ast
        failed_rules = failures.map { |el| el.to_ast }
        [:result, [rule.evaluate(input), [:set, failed_rules]]]
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
dry-logic-0.2.3 lib/dry/logic/result/set.rb
dry-logic-0.2.2 lib/dry/logic/result/set.rb
dry-logic-0.2.1 lib/dry/logic/result/set.rb
dry-logic-0.2.0 lib/dry/logic/result/set.rb