lib/dry/core/extensions.rb
# Enables specified extensions. Already enabled extensions remain untouched
#
# @param [Array<Symbol>] extensions list of extension names
Enables specified extensions. Already enabled extensions remain untouched
Enables specified extensions . Already enabled extensions remain untouched
def load_extensions(*extensions)
        extensions.each do |ext|
          block = @__available_extensions__.fetch(ext) do
            raise ArgumentError, "Unknown extension: #{ext.inspect}"
          end
          unless @__loaded_extensions__.include?(ext)
            block.call
            @__loaded_extensions__ << ext
          end
        end
      end
def load_extensions ( * extensions ) extensions . each do | ext | block = @__available_extensions__ . fetch ( ext ) do raise ArgumentError , "Unknown extension: #{ext.inspect}" end unless @__loaded_extensions__ . include? ( ext ) block . call @__loaded_extensions__ << ext end end end
Enables specified extensions.
Enables specified extensions .
extensions
<not_specific>
<not_specific>
extensions list of extension names
extensions list of extension names