Refactoring Ruby programmatically.

ruby (4), devtools (2)