smart_initializer 0.2.0 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,27 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- # @api private
4
- # @since 0.1.0
5
- module SmartCore::Initializer::ConfigurableModule
6
- # @return [NilClass]
7
- #
8
- # @api private
9
- # @since 0.1.0
10
- INITIAL_TYPE_SYSTEM = nil
11
-
12
- class << self
13
- # @param type_system [String, Symbol, NilClass]
14
- # @return [Module]
15
- #
16
- # @api private
17
- # @since 0.1.0
18
- def build(type_system: INITIAL_TYPE_SYSTEM)
19
- Module.new.tap do |extension|
20
- extension.singleton_class.define_method(:included) do |base_klass|
21
- base_klass.include(::SmartCore::Initializer)
22
- base_klass.__initializer_settings__.type_system = type_system
23
- end
24
- end
25
- end
26
- end
27
- end