Sha256: d4052802aa69aeaaa44fb335642b1533b1e2a51003266dacb36868a9113dfe4c

Contents?: true

Size: 200 Bytes

Versions: 29

Compression:

Stored size: 200 Bytes

Contents

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)

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
dry-mutations-1.6.0 lib/dry/mutations/patches.rb
dry-mutations-1.5.7 lib/dry/mutations/patches.rb
dry-mutations-1.5.6 lib/dry/mutations/patches.rb
dry-mutations-1.5.5 lib/dry/mutations/patches.rb
dry-mutations-1.5.4 lib/dry/mutations/patches.rb
dry-mutations-1.5.3 lib/dry/mutations/patches.rb
dry-mutations-1.5.2 lib/dry/mutations/patches.rb
dry-mutations-1.5.1 lib/dry/mutations/patches.rb
dry-mutations-1.5.0 lib/dry/mutations/patches.rb
dry-mutations-1.3.6 lib/dry/mutations/patches.rb
dry-mutations-1.3.5 lib/dry/mutations/patches.rb
dry-mutations-1.3.4 lib/dry/mutations/patches.rb
dry-mutations-1.3.3 lib/dry/mutations/patches.rb
dry-mutations-1.3.2 lib/dry/mutations/patches.rb
dry-mutations-1.3.1 lib/dry/mutations/patches.rb
dry-mutations-1.1.3 lib/dry/mutations/patches.rb
dry-mutations-1.1.1 lib/dry/mutations/patches.rb
dry-mutations-1.1.0 lib/dry/mutations/patches.rb
dry-mutations-1.0.0 lib/dry/mutations/patches.rb
dry-mutations-0.99.100 lib/dry/mutations/patches.rb