Block (Ruby)
A block is a chunk of code passed to a method, written with do...end or curly braces { }. Blocks are central to Ruby — they power iteration, resource…
A block is a chunk of code passed to a method, written with do...end or curly braces { }. Blocks are central to Ruby — they power iteration, resource…