Dynamic mixins

Skip to end of sidebar
Go to start of sidebar
Skip to end of metadata
Go to start of metadata

Awesome. Mantra does a dynamic mixin. Just map a string to a closure with "self" as first arg:

also note you could alter the MetaClass per object (set .class field) to alter behavior per instance! You can ask about meta object now:

To avoid strange bugs, you can only add not override/alter behavior.

Labels:
None
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.