little event mechanism for changed positions

This commit is contained in:
Torsten Ruger
2018-05-31 17:01:23 +03:00
parent 0e155315aa
commit 49849939a1
3 changed files with 47 additions and 1 deletions

View File

@ -3,7 +3,7 @@ module Util
# Events are stored in the `@events` ivar.
module Eventable
# Risc a handler for the given event name.
# Register a handler for the given event name.
# The event name is the method name called on the handler object
#
# obj.on(:foo , some_object_that_implements foo( whateverargs)