Object:attribute

Creates an attribute handle for this object.

Function

Synopsis

object:attribute( )

Arguments

None.

Returns

Attribute attributes
A handle for the object’s supported native attributes.

Examples

local attributes = mux.object(ctx.object):attribute()
attributes:set("Mechname", "H-7")
local name = attributes:get("Mechname")

Notes

This method is unavailable during @lua/check.

See Also