Refactored ruby rc