Reorganize site to make room for documenting the other built-in modules.

This commit is contained in:
Bob Nystrom
2015-11-08 13:31:22 -08:00
parent 8c0dae1320
commit 82706b74fc
52 changed files with 771 additions and 178 deletions
+29
View File
@@ -0,0 +1,29 @@
^title Class Class
**TODO**
## Methods
### **name**
The name of the class.
### **supertype**
The superclass of this class.
:::wren
class Crustacean {}
class Crab is Crustacean {}
System.print(Crab.supertype) //> Crustacean
A class with no explicit superclass implicitly inherits Object:
:::wren
System.print(Crustacean.supertype) //> Object
Object forms the root of the class hierarchy and has no supertype:
:::wren
System.print(Object.supertype) //> null