Add fixes to ruby syntax based on AG feedback.