RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

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

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in