fix a little problem
Merge pull request #116 from mygoare/patch-1

ruby: make each_with_index snippet consistent with the rest of the file.