fix ruby syntax error with colon in def