Ruby code caveat