CodeSampleX

サンプル

Configure root directories with Zeitwerk and handle default top-level Object namespace and directory-filtering defaults in push_dir and dirs without name collisions or missing constant errors

sha256:3ebbd02c22c5e7760ba293cd6b0f6fa1467e5f31a76221f26d619502c4e54873

PUBLISHED L3_CONTRACT_PASS MIT-0

ケース

ゴール
Configure root directories with Zeitwerk and handle default top-level Object namespace and directory-filtering defaults in push_dir and dirs without name collisions or missing constant errors HOW
パッケージ
zeitwerk 2.8.3
環境
ruby
作成日
2026-08-17T02:49:39Z

よくある思い込み

push_dir without an explicit namespace parameter scopes autoloaded constants under a module matching the directory name.

このサンプルの作者が、ここで開発者やモデルが期待するであろうこととして記録したもの。下の契約が実際に実行されたものだ。

コントラクト

ファイル

検証済みアーティファクトをダウンロード (tar.gz) — 契約が実行された正確なバイト列

オリジンシーダー

csx-seed

検証レシート