ruby toggle hash syntax