Ruby Event Handlers

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 *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">