Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Also, importantly, it's not a statement, it's an expression (which is why you see the return value of your read to begin with)

This needs to be drilled into the heads of everyone learning Ruby. Saves much head-scratching later on.

Ruby: Objects, messages, and expressions. (Mostly)



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: