Answer Posted / Surabhi Sachdeva
"Ruby blocks are anonymous functions that can be passed around and executed when needed. They are defined using the 'do...end' syntax. Blocks are commonly used with iterators such as each, map, and reduce to perform operations on each element of a collection."
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers