Sha256: b68fc5793ff2514a98a5487ba02a57c949289e5850681e29a3f9dcf94f44d08f
Contents?: true
Size: 1.07 KB
Versions: 1
Compression:
Stored size: 1.07 KB
Contents
# frozen_string_literal: true require "zeitwerk" require "dry/core/constants" require "dry/core/errors" require "dry/core/version" # :nodoc: module Dry # :nodoc: module Core include Constants def self.loader @loader ||= Zeitwerk::Loader.new.tap do |loader| root = File.expand_path("..", __dir__) loader.tag = "dry-core" loader.inflector = Zeitwerk::GemInflector.new("#{root}/dry-core.rb") loader.push_dir(root) loader.ignore( "#{root}/dry-core.rb", "#{root}/dry/core/{constants,errors,version}.rb" ) loader.inflector.inflect("namespace_dsl" => "NamespaceDSL") end end loader.setup end # See dry/core/equalizer.rb unless singleton_class.method_defined?(:Equalizer) # Build an equalizer module for the inclusion in other class # # ## Credits # # Equalizer has been originally imported from the equalizer gem created by Dan Kubb # # @api public def self.Equalizer(*keys, **options) Dry::Core::Equalizer.new(*keys, **options) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dry-core-1.0.0 | lib/dry/core.rb |