Blocks
- one or more lines of code that you put inside the do and end keywords.
- or { and } for inline blocks.
- We can pass one or more variables into the block.
- But block doesn't run by itself.
- We need to attach it with something.
Multi-line#
Single-line with do-end#
Single-line with { }#
- If we look above,
doandendis literally replaced with{and}.