Specifying attributes in the class definition enables you to customize the behavior of methods for specific purposes. Control characteristics like access, visibility, and implementation by setting method attributes. Subclasses do not inherit superclass member attributes.
Assign method attributes on the same line as the
methods (Attribute1 = value1, Attribute2 = value2,...) ... end
For more information on attribute syntax, see Attribute Specification.
Attributes enable you to modify the behavior of methods. All methods support the attributes listed in the following table.
Attribute values apply to all methods defined within the
block that specifies the nondefault values.
Determines what code can call this method:
Static Methods provides more information.