Skip to main content

IsAMixin

Generic IsA interface for Lua classes.

Functions

Add

IsAMixin:Add(classtable) → ()

Adds the IsA function to a class and all descendants

IsA

IsAMixin:IsA(classNamestring) → boolean

Using the .ClassName property, returns whether or not a component is a class.

Show raw api
{
    "functions": [
        {
            "name": "Add",
            "desc": "Adds the IsA function to a class and all descendants",
            "params": [
                {
                    "name": "class",
                    "desc": "",
                    "lua_type": "table"
                }
            ],
            "returns": [],
            "function_type": "method",
            "source": {
                "line": 12,
                "path": "src/isamixin/src/Shared/IsAMixin.lua"
            }
        },
        {
            "name": "IsA",
            "desc": "Using the .ClassName property, returns whether or not a component is\na class.",
            "params": [
                {
                    "name": "className",
                    "desc": "",
                    "lua_type": "string"
                }
            ],
            "returns": [
                {
                    "desc": "",
                    "lua_type": "boolean"
                }
            ],
            "function_type": "method",
            "source": {
                "line": 28,
                "path": "src/isamixin/src/Shared/IsAMixin.lua"
            }
        }
    ],
    "properties": [],
    "types": [],
    "name": "IsAMixin",
    "desc": "Generic IsA interface for Lua classes.",
    "source": {
        "line": 5,
        "path": "src/isamixin/src/Shared/IsAMixin.lua"
    }
}