Translation to english of this ruby script