Add Ruby solution.