Skip to content

Commit

Permalink
Document a few details about class
Browse files Browse the repository at this point in the history
Signed-off-by: Alexandre Terrasa <[email protected]>
  • Loading branch information
Morriar committed Dec 17, 2024
1 parent e1636a7 commit fc62534
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/syntax.md
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,9 @@ The following `class`/`instance` types are allowed.
class Foo
attr_reader parent: class
def foo: () -> instance
def foo: () -> instance # behaves like `self` in this context
def self?.bar: () -> instance # behaves like `class` for `def self.bar()` and `self` for `def bar()`
@@foos: Array[instance]
Expand Down

0 comments on commit fc62534

Please sign in to comment.