Documentation for the ruby implementation