Class: Kingsman::Autoloader::Inflector

Inherits:
Zeitwerk::Inflector
  • Object
show all
Defined in:
lib/kingsman/autoloader.rb

Instance Method Summary collapse

Instance Method Details

#camelize(basename, _abspath) ⇒ Object



6
7
8
9
# File 'lib/kingsman/autoloader.rb', line 6

def camelize(basename, _abspath)
  map = { cli: "CLI", version: "VERSION", omniauth: "OmniAuth" }
  map[basename.to_sym] || super
end