Add Ruby implementation.

Why am I doing this?