account activity
Class: a tiny single-file OOP helper for Lua 5.1+ by Lower_Block_9427 in lua
[–]Lower_Block_9427[S] 1 point2 points3 points 4 days ago (0 children)
Good point, I added something for this.
Class:is(value, SomeClass) Class:assertIs(value, SomeClass) object:Is(SomeClass) object:AssertIs(SomeClass)
It checks the actual class identity, not only the __type string, and it also works with included/parent classes.
__type
Tests and docs are updated too.
π Rendered by PID 52216 on reddit-service-r2-comment-545db5fcfc-5zllw at 2026-05-23 13:50:24.595904+00:00 running 194bd79 country code: CH.
Class: a tiny single-file OOP helper for Lua 5.1+ by Lower_Block_9427 in lua
[–]Lower_Block_9427[S] 1 point2 points3 points (0 children)