A chunk of code that is surrounded by do
and end
.
Blocks cannot trigger any functionality on their own, and require a method call to start the block like:
- Ruby times Can contain Ruby Block Parameter which passes data into this block.
do
# basic block
end