Module: ROM::Initializer Private

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Defined Under Namespace

Modules: DefineWithHook, InstanceMethods

Class Method Summary collapse

Class Method Details

.extended(base) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



49
50
51
52
53
54
55
56
57
# File 'core/lib/rom/initializer.rb', line 49

def self.extended(base)
  base.module_eval do
    undef_method(:with) if method_defined?(:with)

    extend(Dry::Initializer[undefined: false])
    extend(DefineWithHook)
    include(InstanceMethods)
  end
end