3 ms·
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 g
by steveklabnik 17y ago
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.
- peskytruth 17y agoJust for blocks/procs. Method definitions still require def/end.