lib/voom.rb
require 'zeitwerk'
class MyInflector < Zeitwerk::GemInflector
def camelize(basename, _abspath)
case basename
when "dsl"
"DSL"
else
super
end
end
end
loader = Zeitwerk::Loader.for_gem
loader.inflector = MyInflector.new(__FILE__)
#loader.logger = Logger.new($stderr)
loader.setup
module Voom
end
if defined?(::Rails)
# We need this class's file to be parsed, but we want to let Zeitwerk load it
Voom::Railtie
end