Because `break` can be used not only to *end* a `case` but also to break out of the middle of the `switch`. Ruby cannot do that and y2r cries "Misplaced break". That would be difficult to translate in general but fortunately `return` from the whole function can be used here. I'll add a comment:

    // y2r: cannot break from middle of switch but in this function return will do