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

Just as a quick note, you can use '{' and '}' instead of 'do' and 'end' if you want. Standard conventions say that one line blocks get {}, and multi-line ones get do-end.


Just for blocks/procs. Method definitions still require def/end.




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

Search: