Class

Types

Type #Class

Name

Description

create

Creates a new class.

createInstance

Instantiates this class.
Do not override this function (see @{#Class.new}).

equals

Compares each field of this object the each field of another, and returns whether the fields are identical.

extend

Creates a subclass of this class.

instanceOf

Returns wether this object is a type or subtype of a class.

new

Instanties this class.
Override this function to create a custom constructor.

throwAbstractFunctionError

Throws an error with the message that an abstract function was invoked.
The name of the function invoking this function will be included in the message.

#Class.create

Creates a new class.

Return

  • #Class

#Class.createInstance

Instantiates this class.
Do not override this function (see @{#Class.new}).

Parameters

  • #table superObject - (Optional) Parent object which the new instance will inherit attributes from

Return

  • #table

#Class.equals

Compares each field of this object the each field of another, and returns whether the fields are identical.

Return

  • #boolean

#Class.extend

Creates a subclass of this class.

Return

  • #Class

#Class.instanceOf

Returns wether this object is a type or subtype of a class.

Return

  • #boolean

#Class.new

Instanties this class.
Override this function to create a custom constructor.

Return

  • #table

#Class.throwAbstractFunctionError

Throws an error with the message that an abstract function was invoked.
The name of the function invoking this function will be included in the message.