ADDED:
+ wrote it in ruby
+ added the ruby stuff to the docs