Sha256: f9287013796ca25a6231032a5c462355637e822c089eb321b14b49b102f2a6ab
Contents?: true
Size: 287 Bytes
Versions: 5
Compression:
Stored size: 287 Bytes
Contents
module Dry module Logic class Result::Multi < Result def success? success.all?(&:success?) end def failures indices = success.map { |v| v.failure? ? success.index(v) : nil }.compact success.values_at(*indices) end end end end
Version data entries
5 entries across 5 versions & 1 rubygems