ruby version 

Hi,

I made a ruby version together with @rdvdijk.

We tried to preserve the feel of the original Java code ;)