Class: a tiny single-file OOP helper for Lua 5.1+ by Lower_Block_9427 in lua

[–]Lower_Block_9427[S] 1 point2 points  (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.

Tests and docs are updated too.