-
Notifications
You must be signed in to change notification settings - Fork 1
Class Attribute Rules
Andrias Meisyal edited this page Apr 30, 2017
·
1 revision
The current version of staruml-ruby supports these class attribute rules:
- If an attribute is set to no readonly and no static, an instance variable is generated and uses
attr_accessor :attribute_name
. - If an attribute is set to readonly and no static, an instance variable is generated and uses
attr_reader :attribute_name
. - If an attribute is set to no readonly and static, a class variable is generated and uses
@@attribute_name =
. - If an attribute is set to readonly and static, a constant is generated and uses
ATTRIBUTE_NAME=
.