Sha256: a04de307f6743ba0f8951463a05fa431a10e2e3f3d9809a20335fbe8b4503c50

Contents?: true

Size: 744 Bytes

Versions: 3

Compression:

Stored size: 744 Bytes

Contents

# frozen_string_literal: true

require "zeitwerk"

Zeitwerk::Loader.new.then do |loader|
  loader.inflector.inflect "cli" => "CLI",
                           "ci" => "CI",
                           "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

3 entries across 3 versions & 1 rubygems

Version Path
rubysmith-7.2.0 lib/rubysmith.rb
rubysmith-7.1.0 lib/rubysmith.rb
rubysmith-7.0.0 lib/rubysmith.rb