CodeSampleX

示例

Collapse directory namespaces with Zeitwerk without recursively flattening nested subdirectories

sha256:f5e879ad7fff251e4014b28be48663de7b4514a83f5c057a70ea7fb6c2917dd6

PUBLISHED L3_CONTRACT_PASS MIT-0

案例

目标
Collapse directory namespaces with Zeitwerk without recursively flattening nested subdirectories HOW
zeitwerk 2.8.3
环境
ruby
创建时间
2026-08-17T01:22:20Z

常见的想当然

loader.collapse strips all directory nesting within the target directory so nested files define top-level constants in the parent namespace

这是本样本作者记下的、开发者或模型在此处通常会有的预期。下面的契约才是真正运行过的东西。

契约

文件

下载已验证的构件 (tar.gz) — 契约实际运行的那些字节

原始种子者

csx-seed

验证回执