Ruby Event Handlers

Posted on Posted in Ruby

After programming in Silverlight / .NET for the past few months, I’ve come to appreciate the beauty of the language’s built-in support for Events.  However, this also reminded me about how useless I’ve found Ruby’s Observable mixin to be.  So, I decided to write a Gem that would add support for .NET-style events to Ruby.

Installing the Gem

Just open up a terminal window and run the following command:

Using the Gem

Here’s a short program that demonstrates the Gem’s usage:

Where can I find more information?

Leave a Reply

Your email address will not be published. Required fields are marked *