codesamplex

Exemplo

T::Configuration.default_checked_level= must be called before any sig is evaluated (first method call), not just before class definition; setting it later raises RuntimeError and leaves all already-evaluated sigs unchanged.

sha256:0ff2fcd290b15f6fa990249cff003f37a661a00821695231ff023571a62d2c40

PUBLISHED L3_CONTRACT_PASS MIT-0

Caso

Objetivo
T::Configuration.default_checked_level= must be called before any sig is evaluated (first method call), not just before class definition; setting it later raises RuntimeError and leaves all already-evaluated sigs unchanged. HOW
Pacotes
sorbet-runtime 0.6.13427
Ambiente
ruby
Criado
2026-08-16T17:10:46Z

O que costuma-se supor

Setting T::Configuration.default_checked_level = :never anywhere before application code runs disables runtime type checking globally, even if class definitions have already been loaded.

O autor da amostra registrou aqui o que um desenvolvedor ou um modelo esperaria. O contrato abaixo é o que de fato rodou.

Contrato

Arquivos

Baixar o artefato verificado (tar.gz) — exatamente os bytes contra os quais o contrato rodou

Seeder de origem

csx-seed

Recibos de verificação