File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -416,10 +416,12 @@ _method-types_ ::= _method-type-parameters_ _method-type_
416416_method-type-parameters_ ::= # Empty
417417 | `[` _type-variable_ `,` ... `]`
418418
419- _attribute-member_ ::= _visibility_ _attribute-type_ _method-name_ `:` _type_ # Attribute
420- | _visibility_ _attribute-type_ _method-name_ `(` _ivar-name_ `) :` _type_ # Attribute with variable name specification
421- | _visibility_ _attribute-type_ _method-name_ `() :` _type_ # Attribute without variable
422-
419+ _attribute-member_ ::= _visibility_ _attribute-type_ _method-name_ `:` _type_ # Attribute
420+ | _visibility_ _attribute-type_ _method-name_ `(` _ivar-name_ `) :` _type_ # Attribute with variable name specification
421+ | _visibility_ _attribute-type_ _method-name_ `() :` _type_ # Attribute without variable
422+ | _visibility_ _attribute-type_ `self.` _method-name_ `:` _type_ # Singleton attribute
423+ | _visibility_ _attribute-type_ `self.` _method-name_ `(` _ivar-name_ `) :` _type_ # Singleton attribute with variable name specification
424+ | _visibility_ _attribute-type_ `self.` _method-name_ `() :` _type_ # Singleton attribute without variable
423425_visibility_ ::= `public` | `private`
424426
425427_attribute-type_ ::= `attr_reader` | `attr_writer` | `attr_accessor`
You can’t perform that action at this time.
0 commit comments