3 ms·
Ruby can use braces instead of end, both are valid.
by gnaritas 14y ago
Ruby can use braces instead of end, both are valid.
- lobster_johnson 14y agoHm? Only for blocks. Not classes, methods, if/unless, while or begin/rescue.
- gnaritas 14y agoDang, you're right, I could swear otherwise but yup, just on blocks.