compatibility with case|when erb control blocks