Trait.compose can be used to combine a set of traits, which can then be instantiated with
Trait.create. From the documentation:
Create is similar to the Ecmascript 5 built-in Object.create except that it generates high-integrity, “final” objects.
It also ensures the resulting object is frozen, and
this is bound to the instantiated object in all accessors and methods.
As you can see by what
create does, this process generates objects that are more strictly controlled than mixin or multiple inheritance-based code.
The tutorial has a good example called An Enumerable Trait which helped me get the hang of the basic usage of the library.