3 ms·
In most ruby projects we already maintain two files for every class; the class itself and its matching test/spec. Something I've wondered about rbs files since
by Lio 6y ago
In most ruby projects we already maintain two files for every class; the class itself and its matching test/spec.
Something I've wondered about rbs files since I first heard about them is, can we combine rbs descriptions with our unit tests?
That would seem to make sense to me and help support TDD/BDD.
Otherwise I'd probably stick to Sorbet in-line type definitions for ruby.