ruby implementation

lets make one implementation of this for each language shall we?