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

検証レシート