Sha256: 1382097d9b2f0f517770a8ca868a0af5e96cd6c0723e6ed18520f20682f2f0c9
Contents?: true
Size: 610 Bytes
Versions: 10
Compression:
Stored size: 610 Bytes
Contents
# frozen_string_literal: true require "zeitwerk" Zeitwerk::Loader.new.then do |loader| loader.inflector.inflect "cli" => "CLI", "circle_ci" => "CircleCI", "erb" => "ERB", "git_hub_ci" => "GitHubCI", "rspec" => "RSpec" loader.tag = File.basename __FILE__, ".rb" loader.push_dir __dir__ loader.setup end # Main namespace. module Rubysmith def self.loader registry = Zeitwerk::Registry @loader ||= registry.loaders.find { |loader| loader.tag == File.basename(__FILE__, ".rb") } end end
Version data entries
10 entries across 10 versions & 1 rubygems