Sha256: 470709582c870148cc156c86ae7c7ad17ee96e5bc75908e4d8030869f49a9f2d

Contents?: true

Size: 532 Bytes

Versions: 12

Compression:

Stored size: 532 Bytes

Contents

# frozen_string_literal: true

require "zeitwerk"

Zeitwerk::Loader.new.then do |loader|
  loader.inflector.inflect "cli" => "CLI",
                           "http_status" => "HTTPStatus",
                           "http_statuses" => "HTTPStatuses"
  loader.tag = File.basename __FILE__, ".rb"
  loader.push_dir __dir__
  loader.setup
end

# Main namespace.
module Pennyworth
  def self.loader registry = Zeitwerk::Registry
    @loader ||= registry.loaders.find { |loader| loader.tag == File.basename(__FILE__, ".rb") }
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
pennyworth-17.3.0 lib/pennyworth.rb
pennyworth-17.2.0 lib/pennyworth.rb
pennyworth-17.1.0 lib/pennyworth.rb
pennyworth-17.0.0 lib/pennyworth.rb
pennyworth-16.7.0 lib/pennyworth.rb
pennyworth-16.5.0 lib/pennyworth.rb
pennyworth-16.4.0 lib/pennyworth.rb
pennyworth-16.3.0 lib/pennyworth.rb
pennyworth-16.2.0 lib/pennyworth.rb
pennyworth-16.1.0 lib/pennyworth.rb
pennyworth-16.0.0 lib/pennyworth.rb
pennyworth-15.4.1 lib/pennyworth.rb