Sha256: 540d1db6e927e21d7b7b0ccbc2fa51a8b8d11eaf498433d257150e443c16dd1a

Contents?: true

Size: 479 Bytes

Versions: 53

Compression:

Stored size: 479 Bytes

Contents

module Dry
  module Mutations
    module DSL
      BRICKS = %i(Schema Blocks Types Weirdo).freeze.each

      module Module # :nodoc:
        def self.extended base
          BRICKS.each do |mod|
            base.singleton_class.prepend ::Dry::Mutations::DSL.const_get(mod)
          end
        end

        def self.included base
          BRICKS.each do |mod|
            base.prepend ::Dry::Mutations::DSL.const_get(mod)
          end
        end
      end
    end
  end
end

Version data entries

53 entries across 53 versions & 1 rubygems

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