Add Ruby implementation.