sorbet/rbi/gems/zeitwerk@2.6.4.rbi in packwerk-3.2.0 vs sorbet/rbi/gems/zeitwerk@2.6.4.rbi in packwerk-3.2.1
- old
+ new
@@ -2,138 +2,142 @@
# DO NOT EDIT MANUALLY
# This is an autogenerated file for types exported from the `zeitwerk` gem.
# Please instead update this file by running `bin/tapioca gem zeitwerk`.
-# source://zeitwerk-2.6.4/lib/zeitwerk/kernel.rb:3
+# source://zeitwerk//lib/zeitwerk/kernel.rb#3
module Kernel
private
- # source://zeitwerk-2.6.4/lib/zeitwerk/kernel.rb:27
+ # source://zeitwerk//lib/zeitwerk/kernel.rb#27
def require(path); end
class << self
- # source://zeitwerk-2.6.4/lib/zeitwerk/kernel.rb:27
+ # source://zeitwerk//lib/zeitwerk/kernel.rb#27
def require(path); end
end
end
-# source://zeitwerk-2.6.4/lib/zeitwerk.rb:3
+# source://zeitwerk//lib/zeitwerk.rb#3
module Zeitwerk
class << self
# This is a dangerous method.
#
- # source://zeitwerk-2.6.4/lib/zeitwerk.rb:20
+ # source://zeitwerk//lib/zeitwerk.rb#20
def with_loader; end
end
end
-# source://zeitwerk-2.6.4/lib/zeitwerk/error.rb:4
+# source://zeitwerk//lib/zeitwerk/error.rb#4
class Zeitwerk::Error < ::StandardError; end
# Centralizes the logic for the trace point used to detect the creation of
# explicit namespaces, needed to descend into matching subdirectories right
# after the constant has been defined.
#
# The implementation assumes an explicit namespace is managed by one loader.
# Loaders that reopen namespaces owned by other projects are responsible for
# loading their constant before setup. This is documented.
#
-# source://zeitwerk-2.6.4/lib/zeitwerk/explicit_namespace.rb:11
+# source://zeitwerk//lib/zeitwerk/explicit_namespace.rb#11
module Zeitwerk::ExplicitNamespace
extend ::Zeitwerk::RealModName
class << self
# Maps constant paths that correspond to explicit namespaces according to
# the file system, to the loader responsible for them.
#
# @private
#
- # source://zeitwerk-2.6.4/lib/zeitwerk/explicit_namespace.rb:20
+ # source://zeitwerk//lib/zeitwerk/explicit_namespace.rb#20
def cpaths; end
# @private
#
- # source://zeitwerk-2.6.4/lib/zeitwerk/explicit_namespace.rb:24
+ # source://zeitwerk//lib/zeitwerk/explicit_namespace.rb#24
def mutex; end
# Asserts `cpath` corresponds to an explicit namespace for which `loader`
# is responsible.
#
# @private
#
- # source://zeitwerk-2.6.4/lib/zeitwerk/explicit_namespace.rb:35
+ # source://zeitwerk//lib/zeitwerk/explicit_namespace.rb#35
def register(cpath, loader); end
# @private
#
- # source://zeitwerk-2.6.4/lib/zeitwerk/explicit_namespace.rb:28
+ # source://zeitwerk//lib/zeitwerk/explicit_namespace.rb#28
def tracer; end
# @private
#
- # source://zeitwerk-2.6.4/lib/zeitwerk/explicit_namespace.rb:46
+ # source://zeitwerk//lib/zeitwerk/explicit_namespace.rb#46
def unregister_loader(loader); end
private
- # source://zeitwerk-2.6.4/lib/zeitwerk/explicit_namespace.rb:54
+ # source://zeitwerk//lib/zeitwerk/explicit_namespace.rb#54
def disable_tracer_if_unneeded; end
- # source://zeitwerk-2.6.4/lib/zeitwerk/explicit_namespace.rb:61
+ # source://zeitwerk//lib/zeitwerk/explicit_namespace.rb#61
def tracepoint_class_callback(event); end
end
end
-# source://zeitwerk-2.6.4/lib/zeitwerk/gem_inflector.rb:5
+# source://zeitwerk//lib/zeitwerk/gem_inflector.rb#4
class Zeitwerk::GemInflector < ::Zeitwerk::Inflector
# @return [GemInflector] a new instance of GemInflector
#
- # source://zeitwerk-2.6.4/lib/zeitwerk/gem_inflector.rb:6
+ # source://zeitwerk//lib/zeitwerk/gem_inflector.rb#6
def initialize(root_file); end
- # source://zeitwerk-2.6.4/lib/zeitwerk/gem_inflector.rb:13
+ # source://zeitwerk//lib/zeitwerk/gem_inflector.rb#13
def camelize(basename, abspath); end
end
# @private
#
-# source://zeitwerk-2.6.4/lib/zeitwerk/gem_loader.rb:7
+# source://zeitwerk//lib/zeitwerk/gem_loader.rb#5
class Zeitwerk::GemLoader < ::Zeitwerk::Loader
# @return [GemLoader] a new instance of GemLoader
#
- # source://zeitwerk-2.6.4/lib/zeitwerk/gem_loader.rb:17
+ # source://zeitwerk//lib/zeitwerk/gem_loader.rb#17
def initialize(root_file, warn_on_extra_files:); end
- # source://zeitwerk-2.6.4/lib/zeitwerk/gem_loader.rb:30
+ # source://zeitwerk//lib/zeitwerk/gem_loader.rb#30
def setup; end
private
- # source://zeitwerk-2.6.4/lib/zeitwerk/gem_loader.rb:38
+ # source://zeitwerk//lib/zeitwerk/gem_loader.rb#38
def warn_on_extra_files; end
class << self
# @private
#
- # source://zeitwerk-2.6.4/lib/zeitwerk/gem_loader.rb:12
+ # source://zeitwerk//lib/zeitwerk/gem_loader.rb#12
def _new(root_file, warn_on_extra_files:); end
+
+ private
+
+ def new(*_arg0); end
end
end
-# source://zeitwerk-2.6.4/lib/zeitwerk/inflector.rb:4
+# source://zeitwerk//lib/zeitwerk/inflector.rb#4
class Zeitwerk::Inflector
# Very basic snake case -> camel case conversion.
#
# inflector = Zeitwerk::Inflector.new
# inflector.camelize("post", ...) # => "Post"
# inflector.camelize("users_controller", ...) # => "UsersController"
# inflector.camelize("api", ...) # => "Api"
#
# Takes into account hard-coded mappings configured with `inflect`.
#
- # source://zeitwerk-2.6.4/lib/zeitwerk/inflector.rb:15
+ # source://zeitwerk//lib/zeitwerk/inflector.rb#15
def camelize(basename, _abspath); end
# Configures hard-coded inflections:
#
# inflector = Zeitwerk::Inflector.new
@@ -144,52 +148,52 @@
#
# inflector.camelize("html_parser", abspath) # => "HTMLParser"
# inflector.camelize("mysql_adapter", abspath) # => "MySQLAdapter"
# inflector.camelize("users_controller", abspath) # => "UsersController"
#
- # source://zeitwerk-2.6.4/lib/zeitwerk/inflector.rb:32
+ # source://zeitwerk//lib/zeitwerk/inflector.rb#32
def inflect(inflections); end
private
# Hard-coded basename to constant name user maps that override the default
# inflection logic.
#
- # source://zeitwerk-2.6.4/lib/zeitwerk/inflector.rb:42
+ # source://zeitwerk//lib/zeitwerk/inflector.rb#42
def overrides; end
end
# This is a private module.
#
-# source://zeitwerk-2.6.4/lib/zeitwerk/internal.rb:4
+# source://zeitwerk//lib/zeitwerk/internal.rb#4
module Zeitwerk::Internal
- # source://zeitwerk-2.6.4/lib/zeitwerk/internal.rb:5
+ # source://zeitwerk//lib/zeitwerk/internal.rb#5
def internal(method_name); end
end
-# source://zeitwerk-2.6.4/lib/zeitwerk/loader.rb:6
+# source://zeitwerk//lib/zeitwerk/loader.rb#6
class Zeitwerk::Loader
include ::Zeitwerk::RealModName
include ::Zeitwerk::Loader::Callbacks
include ::Zeitwerk::Loader::Helpers
include ::Zeitwerk::Loader::Config
include ::Zeitwerk::Loader::EagerLoad
# @return [Loader] a new instance of Loader
#
- # source://zeitwerk-2.6.4/lib/zeitwerk/loader.rb:96
+ # source://zeitwerk//lib/zeitwerk/loader.rb#96
def initialize; end
# We keep track of autoloaded directories to remove them from the registry
# at the end of eager loading.
#
# Files are removed as they are autoloaded, but directories need to wait due
# to concurrency (see why in Zeitwerk::Loader::Callbacks#on_dir_autoloaded).
#
# @private
#
- # source://zeitwerk-2.6.4/lib/zeitwerk/loader.rb:41
+ # source://zeitwerk//lib/zeitwerk/loader.rb#41
def autoloaded_dirs; end
# Maps absolute paths for which an autoload has been set ---and not
# executed--- to their corresponding parent class or module and constant
# name.
@@ -198,21 +202,21 @@
# "/Users/fxn/blog/app/models/hotel/pricing.rb" => [Hotel, :Pricing]
# ...
#
# @private
#
- # source://zeitwerk-2.6.4/lib/zeitwerk/loader.rb:31
+ # source://zeitwerk//lib/zeitwerk/loader.rb#31
def autoloads; end
# @private
#
- # source://zeitwerk-2.6.4/lib/zeitwerk/loader.rb:90
+ # source://zeitwerk//lib/zeitwerk/loader.rb#90
def mutex; end
# @private
#
- # source://zeitwerk-2.6.4/lib/zeitwerk/loader.rb:94
+ # source://zeitwerk//lib/zeitwerk/loader.rb#94
def mutex2; end
# Maps namespace constant paths to their respective directories.
#
# For example, given this mapping:
@@ -227,36 +231,36 @@
# and that its children are spread over those directories. We'll visit them
# to set up the corresponding autoloads.
#
# @private
#
- # source://zeitwerk-2.6.4/lib/zeitwerk/loader.rb:75
+ # source://zeitwerk//lib/zeitwerk/loader.rb#75
def namespace_dirs; end
# Unloads all loaded code, and calls setup again so that the loader is able
# to pick any changes in the file system.
#
# This method is not thread-safe, please see how this can be achieved by
# client code in the README of the project.
#
# @raise [Zeitwerk::Error]
#
- # source://zeitwerk-2.6.4/lib/zeitwerk/loader.rb:217
+ # source://zeitwerk//lib/zeitwerk/loader.rb#217
def reload; end
# Sets autoloads in the root namespace.
#
- # source://zeitwerk-2.6.4/lib/zeitwerk/loader.rb:115
+ # source://zeitwerk//lib/zeitwerk/loader.rb#115
def setup; end
# The return value of this predicate is only meaningful if the loader has
# scanned the file. This is the case in the spots where we use it.
#
# @private
# @return [Boolean]
#
- # source://zeitwerk-2.6.4/lib/zeitwerk/loader.rb:256
+ # source://zeitwerk//lib/zeitwerk/loader.rb#256
def shadowed_file?(file); end
# A shadowed file is a file managed by this loader that is ignored when
# setting autoloads because its matching constant is already taken.
#
@@ -264,11 +268,11 @@
# has only scanned the top-level, `shadowed_files` does not have shadowed
# files that may exist deep in the project tree yet.
#
# @private
#
- # source://zeitwerk-2.6.4/lib/zeitwerk/loader.rb:86
+ # source://zeitwerk//lib/zeitwerk/loader.rb#86
def shadowed_files; end
# Stores metadata needed for unloading. Its entries look like this:
#
# "Admin::Role" => [".../admin/role.rb", [Admin, :Role]]
@@ -281,11 +285,11 @@
# If reloading is enabled, this hash is filled as constants are autoloaded
# or eager loaded. Otherwise, the collection remains empty.
#
# @private
#
- # source://zeitwerk-2.6.4/lib/zeitwerk/loader.rb:57
+ # source://zeitwerk//lib/zeitwerk/loader.rb#57
def to_unload; end
# Removes loaded constants and configured autoloads.
#
# The objects the constants stored are no longer reachable through them. In
@@ -295,99 +299,99 @@
#
# This method is public but undocumented. Main interface is `reload`, which
# means `unload` + `setup`. This one is avaiable to be used together with
# `unregister`, which is undocumented too.
#
- # source://zeitwerk-2.6.4/lib/zeitwerk/loader.rb:141
+ # source://zeitwerk//lib/zeitwerk/loader.rb#141
def unload; end
# Says if the given constant path would be unloaded on reload. This
# predicate returns `false` if reloading is disabled.
#
# @return [Boolean]
#
- # source://zeitwerk-2.6.4/lib/zeitwerk/loader.rb:230
+ # source://zeitwerk//lib/zeitwerk/loader.rb#230
def unloadable_cpath?(cpath); end
# Returns an array with the constant paths that would be unloaded on reload.
# This predicate returns an empty array if reloading is disabled.
#
- # source://zeitwerk-2.6.4/lib/zeitwerk/loader.rb:238
+ # source://zeitwerk//lib/zeitwerk/loader.rb#238
def unloadable_cpaths; end
# This is a dangerous method.
#
- # source://zeitwerk-2.6.4/lib/zeitwerk/loader.rb:246
+ # source://zeitwerk//lib/zeitwerk/loader.rb#246
def unregister; end
private
- # source://zeitwerk-2.6.4/lib/zeitwerk/loader.rb:370
+ # source://zeitwerk//lib/zeitwerk/loader.rb#370
def autoload_file(parent, cname, file); end
# @return [Boolean]
#
- # source://zeitwerk-2.6.4/lib/zeitwerk/loader.rb:428
+ # source://zeitwerk//lib/zeitwerk/loader.rb#428
def autoload_path_set_by_me_for?(parent, cname); end
- # source://zeitwerk-2.6.4/lib/zeitwerk/loader.rb:349
+ # source://zeitwerk//lib/zeitwerk/loader.rb#349
def autoload_subdir(parent, cname, subdir); end
# `dir` is the directory that would have autovivified a namespace. `file` is
# the file where we've found the namespace is explicitly defined.
#
- # source://zeitwerk-2.6.4/lib/zeitwerk/loader.rb:396
+ # source://zeitwerk//lib/zeitwerk/loader.rb#396
def promote_namespace_from_implicit_to_explicit(dir:, file:, parent:, cname:); end
- # source://zeitwerk-2.6.4/lib/zeitwerk/loader.rb:442
+ # source://zeitwerk//lib/zeitwerk/loader.rb#442
def raise_if_conflicting_directory(dir); end
- # source://zeitwerk-2.6.4/lib/zeitwerk/loader.rb:437
+ # source://zeitwerk//lib/zeitwerk/loader.rb#437
def register_explicit_namespace(cpath); end
- # source://zeitwerk-2.6.4/lib/zeitwerk/loader.rb:467
+ # source://zeitwerk//lib/zeitwerk/loader.rb#467
def run_on_unload_callbacks(cpath, value, abspath); end
- # source://zeitwerk-2.6.4/lib/zeitwerk/loader.rb:407
+ # source://zeitwerk//lib/zeitwerk/loader.rb#407
def set_autoload(parent, cname, abspath); end
- # source://zeitwerk-2.6.4/lib/zeitwerk/loader.rb:314
+ # source://zeitwerk//lib/zeitwerk/loader.rb#314
def set_autoloads_in_dir(dir, parent); end
- # source://zeitwerk-2.6.4/lib/zeitwerk/loader.rb:474
+ # source://zeitwerk//lib/zeitwerk/loader.rb#474
def unload_autoload(parent, cname); end
- # source://zeitwerk-2.6.4/lib/zeitwerk/loader.rb:480
+ # source://zeitwerk//lib/zeitwerk/loader.rb#480
def unload_cref(parent, cname); end
class << self
# Returns an array with the absolute paths of the root directories of all
# registered loaders. This is a read-only collection.
#
- # source://zeitwerk-2.6.4/lib/zeitwerk/loader.rb:306
+ # source://zeitwerk//lib/zeitwerk/loader.rb#306
def all_dirs; end
# Returns the value of attribute default_logger.
#
- # source://zeitwerk-2.6.4/lib/zeitwerk/loader.rb:264
+ # source://zeitwerk//lib/zeitwerk/loader.rb#264
def default_logger; end
# Sets the attribute default_logger
#
# @param value the value to set the attribute default_logger to.
#
- # source://zeitwerk-2.6.4/lib/zeitwerk/loader.rb:264
+ # source://zeitwerk//lib/zeitwerk/loader.rb#264
def default_logger=(_arg0); end
# Broadcasts `eager_load` to all loaders.
#
- # source://zeitwerk-2.6.4/lib/zeitwerk/loader.rb:289
+ # source://zeitwerk//lib/zeitwerk/loader.rb#289
def eager_load_all; end
# Broadcasts `eager_load_namespace` to all loaders.
#
- # source://zeitwerk-2.6.4/lib/zeitwerk/loader.rb:296
+ # source://zeitwerk//lib/zeitwerk/loader.rb#296
def eager_load_namespace(mod); end
# This is a shortcut for
#
# require "zeitwerk"
@@ -400,122 +404,122 @@
# the same file, in the unlikely case the gem wants to be able to reload.
#
# This method returns a subclass of Zeitwerk::Loader, but the exact type
# is private, client code can only rely on the interface.
#
- # source://zeitwerk-2.6.4/lib/zeitwerk/loader.rb:281
+ # source://zeitwerk//lib/zeitwerk/loader.rb#281
def for_gem(warn_on_extra_files: T.unsafe(nil)); end
end
end
-# source://zeitwerk-2.6.4/lib/zeitwerk/loader/callbacks.rb:3
+# source://zeitwerk//lib/zeitwerk/loader/callbacks.rb#3
module Zeitwerk::Loader::Callbacks
include ::Zeitwerk::RealModName
# Invoked from our decorated Kernel#require when a managed directory is
# autoloaded.
#
# @private
#
- # source://zeitwerk-2.6.4/lib/zeitwerk/loader/callbacks.rb:34
+ # source://zeitwerk//lib/zeitwerk/loader/callbacks.rb#34
def on_dir_autoloaded(dir); end
# Invoked from our decorated Kernel#require when a managed file is autoloaded.
#
# @private
#
- # source://zeitwerk-2.6.4/lib/zeitwerk/loader/callbacks.rb:10
+ # source://zeitwerk//lib/zeitwerk/loader/callbacks.rb#10
def on_file_autoloaded(file); end
# Invoked when a class or module is created or reopened, either from the
# tracer or from module autovivification. If the namespace has matching
# subdirectories, we descend into them now.
#
# @private
#
- # source://zeitwerk-2.6.4/lib/zeitwerk/loader/callbacks.rb:73
+ # source://zeitwerk//lib/zeitwerk/loader/callbacks.rb#73
def on_namespace_loaded(namespace); end
private
- # source://zeitwerk-2.6.4/lib/zeitwerk/loader/callbacks.rb:84
+ # source://zeitwerk//lib/zeitwerk/loader/callbacks.rb#84
def run_on_load_callbacks(cpath, value, abspath); end
end
-# source://zeitwerk-2.6.4/lib/zeitwerk/loader/config.rb:6
+# source://zeitwerk//lib/zeitwerk/loader/config.rb#6
module Zeitwerk::Loader::Config
extend ::Zeitwerk::Internal
- # source://zeitwerk-2.6.4/lib/zeitwerk/loader/config.rb:84
+ # source://zeitwerk//lib/zeitwerk/loader/config.rb#84
def initialize; end
- # source://zeitwerk-2.6.4/lib/zeitwerk/loader/config.rb:281
+ # source://zeitwerk//lib/zeitwerk/loader/config.rb#281
def __ignores?(abspath); end
def __roots; end
# Configure directories or glob patterns to be collapsed.
#
- # source://zeitwerk-2.6.4/lib/zeitwerk/loader/config.rb:201
+ # source://zeitwerk//lib/zeitwerk/loader/config.rb#201
def collapse(*glob_patterns); end
# If `namespaces` is falsey (default), returns an array with the absolute
# paths of the root directories as strings. If truthy, returns a hash table
# instead. Keys are the absolute paths of the root directories as strings,
# values are their corresponding namespaces, class or module objects.
#
# These are read-only collections, please add to them with `push_dir`.
#
- # source://zeitwerk-2.6.4/lib/zeitwerk/loader/config.rb:149
+ # source://zeitwerk//lib/zeitwerk/loader/config.rb#149
def dirs(namespaces: T.unsafe(nil)); end
# Let eager load ignore the given files or directories. The constants defined
# in those files are still autoloadable.
#
- # source://zeitwerk-2.6.4/lib/zeitwerk/loader/config.rb:183
+ # source://zeitwerk//lib/zeitwerk/loader/config.rb#183
def do_not_eager_load(*paths); end
# You need to call this method before setup in order to be able to reload.
# There is no way to undo this, either you want to reload or you don't.
#
# @raise [Zeitwerk::Error]
#
- # source://zeitwerk-2.6.4/lib/zeitwerk/loader/config.rb:162
+ # source://zeitwerk//lib/zeitwerk/loader/config.rb#162
def enable_reloading; end
# Configure files, directories, or glob patterns to be totally ignored.
#
- # source://zeitwerk-2.6.4/lib/zeitwerk/loader/config.rb:190
+ # source://zeitwerk//lib/zeitwerk/loader/config.rb#190
def ignore(*glob_patterns); end
# Returns the value of attribute inflector.
#
- # source://zeitwerk-2.6.4/lib/zeitwerk/loader/config.rb:10
+ # source://zeitwerk//lib/zeitwerk/loader/config.rb#10
def inflector; end
# Sets the attribute inflector
#
# @param value the value to set the attribute inflector to.
#
- # source://zeitwerk-2.6.4/lib/zeitwerk/loader/config.rb:10
+ # source://zeitwerk//lib/zeitwerk/loader/config.rb#10
def inflector=(_arg0); end
# Logs to `$stdout`, handy shortcut for debugging.
#
- # source://zeitwerk-2.6.4/lib/zeitwerk/loader/config.rb:273
+ # source://zeitwerk//lib/zeitwerk/loader/config.rb#273
def log!; end
# Returns the value of attribute logger.
#
- # source://zeitwerk-2.6.4/lib/zeitwerk/loader/config.rb:13
+ # source://zeitwerk//lib/zeitwerk/loader/config.rb#13
def logger; end
# Sets the attribute logger
#
# @param value the value to set the attribute logger to.
#
- # source://zeitwerk-2.6.4/lib/zeitwerk/loader/config.rb:13
+ # source://zeitwerk//lib/zeitwerk/loader/config.rb#13
def logger=(_arg0); end
# Configure a block to be invoked once a certain constant path is loaded.
# Supports multiple callbacks, and if there are many, they are executed in
# the order in which they were defined.
@@ -530,17 +534,17 @@
# # ...
# end
#
# @raise [TypeError]
#
- # source://zeitwerk-2.6.4/lib/zeitwerk/loader/config.rb:237
+ # source://zeitwerk//lib/zeitwerk/loader/config.rb#237
def on_load(cpath = T.unsafe(nil), &block); end
# Configure a block to be called after setup and on each reload.
# If setup was already done, the block runs immediately.
#
- # source://zeitwerk-2.6.4/lib/zeitwerk/loader/config.rb:213
+ # source://zeitwerk//lib/zeitwerk/loader/config.rb#213
def on_setup(&block); end
# Configure a block to be invoked right before a certain constant is removed.
# Supports multiple callbacks, and if there are many, they are executed in the
# order in which they were defined.
@@ -555,119 +559,119 @@
# # ...
# end
#
# @raise [TypeError]
#
- # source://zeitwerk-2.6.4/lib/zeitwerk/loader/config.rb:262
+ # source://zeitwerk//lib/zeitwerk/loader/config.rb#262
def on_unload(cpath = T.unsafe(nil), &block); end
# Pushes `path` to the list of root directories.
#
# Raises `Zeitwerk::Error` if `path` does not exist, or if another loader in
# the same process already manages that directory or one of its ascendants or
# descendants.
#
# @raise [Zeitwerk::Error]
#
- # source://zeitwerk-2.6.4/lib/zeitwerk/loader/config.rb:109
+ # source://zeitwerk//lib/zeitwerk/loader/config.rb#109
def push_dir(path, namespace: T.unsafe(nil)); end
# @return [Boolean]
#
- # source://zeitwerk-2.6.4/lib/zeitwerk/loader/config.rb:175
+ # source://zeitwerk//lib/zeitwerk/loader/config.rb#175
def reloading_enabled?; end
# Returns the loader's tag.
#
# Implemented as a method instead of via attr_reader for symmetry with the
# writer below.
#
- # source://zeitwerk-2.6.4/lib/zeitwerk/loader/config.rb:130
+ # source://zeitwerk//lib/zeitwerk/loader/config.rb#130
def tag; end
# Sets a tag for the loader, useful for logging.
#
- # source://zeitwerk-2.6.4/lib/zeitwerk/loader/config.rb:137
+ # source://zeitwerk//lib/zeitwerk/loader/config.rb#137
def tag=(tag); end
private
- # source://zeitwerk-2.6.4/lib/zeitwerk/loader/config.rb:294
+ # source://zeitwerk//lib/zeitwerk/loader/config.rb#294
def actual_roots; end
# @return [Boolean]
#
- # source://zeitwerk-2.6.4/lib/zeitwerk/loader/config.rb:319
+ # source://zeitwerk//lib/zeitwerk/loader/config.rb#319
def collapse?(dir); end
# The actual collection of absolute directory names at the time the collapse
# glob patterns were expanded. Computed on setup, and recomputed on reload.
#
- # source://zeitwerk-2.6.4/lib/zeitwerk/loader/config.rb:55
+ # source://zeitwerk//lib/zeitwerk/loader/config.rb#55
def collapse_dirs; end
# Absolute paths of directories or glob patterns to be collapsed.
#
- # source://zeitwerk-2.6.4/lib/zeitwerk/loader/config.rb:48
+ # source://zeitwerk//lib/zeitwerk/loader/config.rb#48
def collapse_glob_patterns; end
# Absolute paths of files or directories not to be eager loaded.
#
- # source://zeitwerk-2.6.4/lib/zeitwerk/loader/config.rb:61
+ # source://zeitwerk//lib/zeitwerk/loader/config.rb#61
def eager_load_exclusions; end
# @return [Boolean]
#
- # source://zeitwerk-2.6.4/lib/zeitwerk/loader/config.rb:306
+ # source://zeitwerk//lib/zeitwerk/loader/config.rb#306
def excluded_from_eager_load?(abspath); end
- # source://zeitwerk-2.6.4/lib/zeitwerk/loader/config.rb:329
+ # source://zeitwerk//lib/zeitwerk/loader/config.rb#329
def expand_glob_patterns(glob_patterns); end
- # source://zeitwerk-2.6.4/lib/zeitwerk/loader/config.rb:324
+ # source://zeitwerk//lib/zeitwerk/loader/config.rb#324
def expand_paths(paths); end
# Absolute paths of files, directories, or glob patterns to be totally
# ignored.
#
- # source://zeitwerk-2.6.4/lib/zeitwerk/loader/config.rb:34
+ # source://zeitwerk//lib/zeitwerk/loader/config.rb#34
def ignored_glob_patterns; end
# The actual collection of absolute file and directory names at the time the
# ignored glob patterns were expanded. Computed on setup, and recomputed on
# reload.
#
- # source://zeitwerk-2.6.4/lib/zeitwerk/loader/config.rb:42
+ # source://zeitwerk//lib/zeitwerk/loader/config.rb#42
def ignored_paths; end
- # source://zeitwerk-2.6.4/lib/zeitwerk/loader/config.rb:281
+ # source://zeitwerk//lib/zeitwerk/loader/config.rb#281
def ignores?(abspath); end
# User-oriented callbacks to be fired when a constant is loaded.
#
- # source://zeitwerk-2.6.4/lib/zeitwerk/loader/config.rb:74
+ # source://zeitwerk//lib/zeitwerk/loader/config.rb#74
def on_load_callbacks; end
# User-oriented callbacks to be fired on setup and on reload.
#
- # source://zeitwerk-2.6.4/lib/zeitwerk/loader/config.rb:67
+ # source://zeitwerk//lib/zeitwerk/loader/config.rb#67
def on_setup_callbacks; end
# User-oriented callbacks to be fired before constants are removed.
#
- # source://zeitwerk-2.6.4/lib/zeitwerk/loader/config.rb:81
+ # source://zeitwerk//lib/zeitwerk/loader/config.rb#81
def on_unload_callbacks; end
- # source://zeitwerk-2.6.4/lib/zeitwerk/loader/config.rb:341
+ # source://zeitwerk//lib/zeitwerk/loader/config.rb#341
def recompute_collapse_dirs; end
- # source://zeitwerk-2.6.4/lib/zeitwerk/loader/config.rb:336
+ # source://zeitwerk//lib/zeitwerk/loader/config.rb#336
def recompute_ignored_paths; end
# @return [Boolean]
#
- # source://zeitwerk-2.6.4/lib/zeitwerk/loader/config.rb:301
+ # source://zeitwerk//lib/zeitwerk/loader/config.rb#301
def root_dir?(dir); end
# Absolute paths of the root directories. Stored in a hash to preserve order,
# easily handle duplicates, have a fast lookup needed for detecting nested
# paths, and store namespaces as values.
@@ -677,31 +681,31 @@
# ...
#
# This is a private collection maintained by the loader. The public
# interface for it is `push_dir` and `dirs`.
#
- # source://zeitwerk-2.6.4/lib/zeitwerk/loader/config.rb:27
+ # source://zeitwerk//lib/zeitwerk/loader/config.rb#27
def roots; end
end
-# source://zeitwerk-2.6.4/lib/zeitwerk/loader/eager_load.rb:1
+# source://zeitwerk//lib/zeitwerk/loader/eager_load.rb#1
module Zeitwerk::Loader::EagerLoad
# Eager loads all files in the root directories, recursively. Files do not
# need to be in `$LOAD_PATH`, absolute file names are used. Ignored and
# shadowed files are not eager loaded. You can opt-out specifically in
# specific files and directories with `do_not_eager_load`, and that can be
# overridden passing `force: true`.
#
- # source://zeitwerk-2.6.4/lib/zeitwerk/loader/eager_load.rb:9
+ # source://zeitwerk//lib/zeitwerk/loader/eager_load.rb#9
def eager_load(force: T.unsafe(nil)); end
# @raise [Zeitwerk::Error]
#
- # source://zeitwerk-2.6.4/lib/zeitwerk/loader/eager_load.rb:31
+ # source://zeitwerk//lib/zeitwerk/loader/eager_load.rb#31
def eager_load_dir(path); end
- # source://zeitwerk-2.6.4/lib/zeitwerk/loader/eager_load.rb:69
+ # source://zeitwerk//lib/zeitwerk/loader/eager_load.rb#69
def eager_load_namespace(mod); end
# Loads the given Ruby file.
#
# Raises if the argument is ignored, shadowed, or not managed by the receiver.
@@ -709,120 +713,120 @@
# The method is implemented as `constantize` for files, in a sense, to be able
# to descend orderly and make sure the file is loadable.
#
# @raise [Zeitwerk::Error]
#
- # source://zeitwerk-2.6.4/lib/zeitwerk/loader/eager_load.rb:109
+ # source://zeitwerk//lib/zeitwerk/loader/eager_load.rb#109
def load_file(path); end
private
# The caller is responsible for making sure `namespace` is the namespace that
# corresponds to `dir`.
#
- # source://zeitwerk-2.6.4/lib/zeitwerk/loader/eager_load.rb:149
+ # source://zeitwerk//lib/zeitwerk/loader/eager_load.rb#149
def actual_eager_load_dir(dir, namespace, force: T.unsafe(nil)); end
# In order to invoke this method, the caller has to ensure `child` is a
# strict namespace descendendant of `root_namespace`.
#
- # source://zeitwerk-2.6.4/lib/zeitwerk/loader/eager_load.rb:184
+ # source://zeitwerk//lib/zeitwerk/loader/eager_load.rb#184
def eager_load_child_namespace(child, child_name, root_dir, root_namespace); end
end
-# source://zeitwerk-2.6.4/lib/zeitwerk/loader/helpers.rb:3
+# source://zeitwerk//lib/zeitwerk/loader/helpers.rb#3
module Zeitwerk::Loader::Helpers
private
# @return [Boolean]
#
- # source://zeitwerk-2.6.4/lib/zeitwerk/loader/helpers.rb:130
+ # source://zeitwerk//lib/zeitwerk/loader/helpers.rb#130
def cdef?(parent, cname); end
# @raise [NameError]
#
- # source://zeitwerk-2.6.4/lib/zeitwerk/loader/helpers.rb:136
+ # source://zeitwerk//lib/zeitwerk/loader/helpers.rb#136
def cget(parent, cname); end
# Symbol#name was introduced in Ruby 3.0. It returns always the same
# frozen object, so we may save a few string allocations.
#
- # source://zeitwerk-2.6.4/lib/zeitwerk/loader/helpers.rb:120
+ # source://zeitwerk//lib/zeitwerk/loader/helpers.rb#120
def cpath(parent, cname); end
# @return [Boolean]
#
- # source://zeitwerk-2.6.4/lib/zeitwerk/loader/helpers.rb:69
+ # source://zeitwerk//lib/zeitwerk/loader/helpers.rb#69
def dir?(path); end
# @return [Boolean]
#
- # source://zeitwerk-2.6.4/lib/zeitwerk/loader/helpers.rb:47
+ # source://zeitwerk//lib/zeitwerk/loader/helpers.rb#47
def has_at_least_one_ruby_file?(dir); end
# @return [Boolean]
#
- # source://zeitwerk-2.6.4/lib/zeitwerk/loader/helpers.rb:74
+ # source://zeitwerk//lib/zeitwerk/loader/helpers.rb#74
def hidden?(basename); end
- # source://zeitwerk-2.6.4/lib/zeitwerk/loader/helpers.rb:9
+ # source://zeitwerk//lib/zeitwerk/loader/helpers.rb#9
def log(message); end
- # source://zeitwerk-2.6.4/lib/zeitwerk/loader/helpers.rb:17
+ # source://zeitwerk//lib/zeitwerk/loader/helpers.rb#17
def ls(dir); end
# @return [Boolean]
#
- # source://zeitwerk-2.6.4/lib/zeitwerk/loader/helpers.rb:64
+ # source://zeitwerk//lib/zeitwerk/loader/helpers.rb#64
def ruby?(path); end
- # source://zeitwerk-2.6.4/lib/zeitwerk/loader/helpers.rb:111
+ # source://zeitwerk//lib/zeitwerk/loader/helpers.rb#111
def strict_autoload_path(parent, cname); end
- # source://zeitwerk-2.6.4/lib/zeitwerk/loader/helpers.rb:79
+ # source://zeitwerk//lib/zeitwerk/loader/helpers.rb#79
def walk_up(abspath); end
end
-# source://zeitwerk-2.6.4/lib/zeitwerk/loader.rb:18
+# source://zeitwerk//lib/zeitwerk/loader.rb#18
Zeitwerk::Loader::MUTEX = T.let(T.unsafe(nil), Thread::Mutex)
-# source://zeitwerk-2.6.4/lib/zeitwerk/error.rb:13
+# source://zeitwerk//lib/zeitwerk/error.rb#13
class Zeitwerk::NameError < ::NameError; end
-# source://zeitwerk-2.6.4/lib/zeitwerk/real_mod_name.rb:3
+# source://zeitwerk//lib/zeitwerk/real_mod_name.rb#3
module Zeitwerk::RealModName
- # source://zeitwerk-2.6.4/lib/zeitwerk/real_mod_name.rb:14
+ # source://zeitwerk//lib/zeitwerk/real_mod_name.rb#14
def real_mod_name(mod); end
end
-# source://zeitwerk-2.6.4/lib/zeitwerk/real_mod_name.rb:4
+# source://zeitwerk//lib/zeitwerk/real_mod_name.rb#4
Zeitwerk::RealModName::UNBOUND_METHOD_MODULE_NAME = T.let(T.unsafe(nil), UnboundMethod)
-# source://zeitwerk-2.6.4/lib/zeitwerk/registry.rb:4
+# source://zeitwerk//lib/zeitwerk/registry.rb#4
module Zeitwerk::Registry
class << self
# Maps absolute paths to the loaders responsible for them.
#
# This information is used by our decorated `Kernel#require` to be able to
# invoke callbacks and autovivify modules.
#
# @private
#
- # source://zeitwerk-2.6.4/lib/zeitwerk/registry.rb:26
+ # source://zeitwerk//lib/zeitwerk/registry.rb#26
def autoloads; end
# Registers gem loaders to let `for_gem` be idempotent in case of reload.
#
# @private
#
- # source://zeitwerk-2.6.4/lib/zeitwerk/registry.rb:17
+ # source://zeitwerk//lib/zeitwerk/registry.rb#17
def gem_loaders_by_root_file; end
# @private
# @return [Boolean]
#
- # source://zeitwerk-2.6.4/lib/zeitwerk/registry.rb:113
+ # source://zeitwerk//lib/zeitwerk/registry.rb#113
def inception?(cpath); end
# This hash table addresses an edge case in which an autoload is ignored.
#
# For example, let's suppose we want to autoload in a gem like this:
@@ -858,73 +862,73 @@
# include MyConcern
# end
#
# @private
#
- # source://zeitwerk-2.6.4/lib/zeitwerk/registry.rb:65
+ # source://zeitwerk//lib/zeitwerk/registry.rb#65
def inceptions; end
# @private
#
- # source://zeitwerk-2.6.4/lib/zeitwerk/registry.rb:121
+ # source://zeitwerk//lib/zeitwerk/registry.rb#121
def loader_for(path); end
# This method returns always a loader, the same instance for the same root
# file. That is how Zeitwerk::Loader.for_gem is idempotent.
#
# @private
#
- # source://zeitwerk-2.6.4/lib/zeitwerk/registry.rb:89
+ # source://zeitwerk//lib/zeitwerk/registry.rb#89
def loader_for_gem(root_file, warn_on_extra_files:); end
# Keeps track of all loaders. Useful to broadcast messages and to prevent
# them from being garbage collected.
#
# @private
#
- # source://zeitwerk-2.6.4/lib/zeitwerk/registry.rb:11
+ # source://zeitwerk//lib/zeitwerk/registry.rb#11
def loaders; end
# @private
#
- # source://zeitwerk-2.6.4/lib/zeitwerk/registry.rb:127
+ # source://zeitwerk//lib/zeitwerk/registry.rb#127
def on_unload(loader); end
# @private
#
- # source://zeitwerk-2.6.4/lib/zeitwerk/registry.rb:95
+ # source://zeitwerk//lib/zeitwerk/registry.rb#95
def register_autoload(loader, abspath); end
# @private
#
- # source://zeitwerk-2.6.4/lib/zeitwerk/registry.rb:107
+ # source://zeitwerk//lib/zeitwerk/registry.rb#107
def register_inception(cpath, abspath, loader); end
# Registers a loader.
#
# @private
#
- # source://zeitwerk-2.6.4/lib/zeitwerk/registry.rb:71
+ # source://zeitwerk//lib/zeitwerk/registry.rb#71
def register_loader(loader); end
# @private
#
- # source://zeitwerk-2.6.4/lib/zeitwerk/registry.rb:101
+ # source://zeitwerk//lib/zeitwerk/registry.rb#101
def unregister_autoload(abspath); end
# @private
#
- # source://zeitwerk-2.6.4/lib/zeitwerk/registry.rb:77
+ # source://zeitwerk//lib/zeitwerk/registry.rb#77
def unregister_loader(loader); end
end
end
-# source://zeitwerk-2.6.4/lib/zeitwerk/error.rb:7
+# source://zeitwerk//lib/zeitwerk/error.rb#7
class Zeitwerk::ReloadingDisabledError < ::Zeitwerk::Error
# @return [ReloadingDisabledError] a new instance of ReloadingDisabledError
#
- # source://zeitwerk-2.6.4/lib/zeitwerk/error.rb:8
+ # source://zeitwerk//lib/zeitwerk/error.rb#8
def initialize; end
end
-# source://zeitwerk-2.6.4/lib/zeitwerk/version.rb:4
+# source://zeitwerk//lib/zeitwerk/version.rb#4
Zeitwerk::VERSION = T.let(T.unsafe(nil), String)