Sha256: 8b4221afff3b1bdda5c93097bc012021cf7e9d22e317b3e39ba5bca768e85554

Contents?: true

Size: 789 Bytes

Versions: 7

Compression:

Stored size: 789 Bytes

Contents

# frozen_string_literal: true

require "zeitwerk"

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

7 entries across 7 versions & 1 rubygems

Version Path
rubysmith-7.9.0 lib/rubysmith.rb
rubysmith-7.8.0 lib/rubysmith.rb
rubysmith-7.7.0 lib/rubysmith.rb
rubysmith-7.6.0 lib/rubysmith.rb
rubysmith-7.5.0 lib/rubysmith.rb
rubysmith-7.4.0 lib/rubysmith.rb
rubysmith-7.3.0 lib/rubysmith.rb