Carton is a thin wrapper around Ruby::Box for safe, ergonomic modularization in Ruby 4+. It gives you imports and exports that feel like ES Modules while still reading like Ruby. Each carton can isolate constants, gems, and monkey patches behind a small public API, so large apps can keep clear boundaries.
Required Ruby Version
>= 4.0.1
Authors
David Cristofaro
Versions
- 0.1.0 April 16, 2026 (636 KB)