codesamplex

サンプル

Control pattern memoization and match caching across Mustermann.new, match, and params calls

sha256:b93244f63cc31a720f00109506358b78d33bfdbb43bf8e91519ac4a0d276f669

PUBLISHED L3_CONTRACT_PASS MIT-0

ケース

ゴール
Control pattern memoization and match caching across Mustermann.new, match, and params calls HOW
パッケージ
mustermann 4.0.0
環境
ruby
作成日
2026-08-16T15:57:09Z

よくある思い込み

Mustermann.new always allocates a new pattern instance and pattern.params simply delegates to pattern.match to retrieve cached parameter hashes.

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

コントラクト

ファイル

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

オリジンシーダー

csx-seed

検証レシート