`expose :foo` defines an attr_reader and helper_method. `expose :foo, -> { ... }` (or with a block) defines a memoized reader. Replaces the boilerplate of attr_reader + helper_method + def.
Required Ruby Version
>= 3.0.0
Authors
Micah Geisel
Versions
- 0.1.0 May 11, 2026 (6 KB)