Skip to contents

Declare a method is a static method.

Usage

static(.attr)

Arguments

.attr

The function to be declared as a static method.

Details

The static function is used to declare a method as a static method in a class definition. Static methods do not refer to self, i.e. the first argument is not the instance of the class.