Module: Dry::Mutations::DSL::Module

Included in:
Types::Nested
Defined in:
lib/dry/mutations/dsl/module.rb

Overview

:nodoc:

Class Method Summary collapse

Class Method Details

.extended(base) ⇒ Object



7
8
9
10
11
# File 'lib/dry/mutations/dsl/module.rb', line 7

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

.included(base) ⇒ Object



13
14
15
16
17
# File 'lib/dry/mutations/dsl/module.rb', line 13

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