class Zeitwerk::GemInflector

Experimental RBS support (using type sampling data from the type_fusion project).

# sig/zeitwerk/gem_inflector.rbs

class Zeitwerk::GemInflector < Zeitwerk::Inflector
  def camelize: (String basename, String abspath, String _abspath) -> String
end

def camelize(basename, abspath)

Experimental RBS support (using type sampling data from the type_fusion project).

def camelize: (String basename, String abspath, String _abspath) -> String

This signature was generated using 8 samples from 1 application.

@sig (String, String) -> String
def camelize(basename, abspath)
  abspath == @version_file ? "VERSION" : super
end

def initialize(root_file)

@sig (String) -> void
def initialize(root_file)
  namespace     = File.basename(root_file, ".rb")
  root_dir      = File.dirname(root_file)
  @version_file = File.join(root_dir, namespace, "version.rb")
end