Eventable: Easily add garbage collection safe events to any class
Eventable is an easy to use and understand event model; it’s the simplest way to add fine-grain events to your classes.
EventMachine is great for IO events and for simple notifications Observable is fine but what if you want event specific notifications?
Thats what I needed so I wrote Eventable; it does the housekeeping for you allowing you to concentrate on writing code.
Check out the source code and complete, working examples on GitHub: https://github.com/mikbe/eventable
You can install the gem from RubyGems too:
$ gem install eventable
Note: This project is still beta, and I’m relatively new to Ruby, so I would greatly appreciate any constructive criticism and suggestions for things I forgot or did poorly. Thanks.
Post a comment