am-kantox/dry-mutations

View on GitHub
lib/dry/mutations/patches.rb

Summary

Maintainability
A
0 mins
Test Coverage
Dry::Types::Sum::Constrained.prepend(Module.new do
  def primitive
    case
    when [left, right].map(&:type).map(&:primitive) == [TrueClass, FalseClass] then ::Dry::Types['bool']
    end
  end
end)