Replaces old Ruby syntax with new