Ruby method template correction.