Adds ruby refactoring