Sha256: ae146644cee9906ebe0beaf86b7da745da1136adbcd0381ab6b65ea90eb7a8ef

Contents?: true

Size: 703 Bytes

Versions: 2

Compression:

Stored size: 703 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",
                           "irb_kit" => "IRBKit",
                           "rspec" => "RSpec",
                           "rtc" => "RTC"
  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

2 entries across 2 versions & 1 rubygems

Version Path
rubysmith-6.10.0 lib/rubysmith.rb
rubysmith-6.9.0 lib/rubysmith.rb