Declare a method is a static method.
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.