Sha256: a4510db9c9da5948f7c55f6e4e7a3e6ffa5f5007c28cd56d2d57e1d1b8f0d403
Contents?: true
Size: 1.37 KB
Versions: 1
Compression:
Stored size: 1.37 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 # 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) Equalizer.new(*keys, **options) end 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.1.0 | lib/dry/core.rb |