Module Eventable
Mixin module that allows objects to receive events from TSC. Mixing in this module on the MRuby side of things is quite useless as you may then receive events, but nobody actually fires those for you.
This module however is included by default by all classes that can receive events from the C++ side and its methods are therefore available to instances of those classes. It is also used internally heavily in the implementation of the on_* methods.
Instance Methods
bind
bind(evtname){|evtname, *args| ...} → nil
Listen for the event evtname and register the block as the event handler. It gets passed the name of the event as the first argument, followed by any additional arguments specific to the event.