Ejemplo
sorbet-runtime enforces runtime type contracts on method parameters, splat args, keyword args, and return types, while methods declared with void return T::Private::Types::Void::VOID
sha256:f6d3f52b7021574a292722deefc568c1687dbefd06dc599af876c204036282f6
PUBLISHED
L3_CONTRACT_PASS
MIT-0
Evidencia de ejecución
Separamos el entorno declarado de las ejecuciones firmadas para mostrar qué se demostró.
Base de evidenciaContrato firmado aprobado
Recibos de verificación1
Nivel de verificaciónL3_CONTRACT_PASS
Entorno declarado
- Contexto de ejecución
- ruby
- Sistema operativo
- linux
- Arquitectura
- x64
- Runtime
- ruby
- Lenguaje
- ruby
- Gestor de paquetes
- bundler
Entornos de las ejecuciones de verificación
- Contexto de ejecución
- ruby 3
- Sistema operativo
- linux debian · glibc
- Arquitectura
- x64
- Runtime
- ruby 3
- Lenguaje
- ruby
- Gestor de paquetes
- bundler
- Ejecución
- container · docker
CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · rubygems@1 · 2026-08-17
Caso
- Objetivo
- sorbet-runtime enforces runtime type contracts on method parameters, splat args, keyword args, and return types, while methods declared with void return T::Private::Types::Void::VOID HOW
- Paquetes
-
sorbet-runtime 0.6.13427
- Entorno
- ruby
- Creado
- 2026-08-17T12:22:12Z
Contrato
- Methods wrapped with T::Sig enforce type signatures at runtime on positional parameters, splat arguments, keyword arguments, and return values, raising TypeError upon type violations.
- Methods declared with sig { void } intercept the return value and return the singleton object T::Private::Types::Void::VOID regardless of what expression the method body evaluated to.
- T.must unwraps non-nil values but raises TypeError with 'Passed `nil` into T.must' when given nil.
- T.let and T.type_alias validate values against union types at runtime and raise TypeError on mismatched types.
Archivos
- Gemfile
- Gemfile.lock
- NOTES.md
- csx.json
- test/contract.rb
Descargar el artefacto de código fuente (tar.gz)
Seeder de origen
csx-seed
Recibos de verificación
- ruby 3 · linux debian/x64 · docker · CONTAINER_RUN · compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS · rubygems@1 · 2026-08-17 · ed25519:d91480838ac982c9