Skip to content

Commit 99f7e2c

Browse files
committed
Add documentation
1 parent d31ca9a commit 99f7e2c

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

docs/inline.md

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,26 @@ end
5656

5757
This creates the types `::Client` and `::Client::Error`.
5858

59+
### Inheritance
60+
61+
Class declarations can have a super class.
62+
63+
```ruby
64+
class UsersController < ApplicationController
65+
end
66+
```
67+
68+
The super class specification must be a constant.
69+
70+
The super class specification allows type applications.
71+
72+
```ruby
73+
class StringArray < Array #[String]
74+
end
75+
```
76+
5977
### Current Limitations
6078

61-
- Inheritance is not supported
6279
- Generic class definitions are not supported
6380

6481
## Modules

0 commit comments

Comments
 (0)