Answer Posted / Priyanshu Kaushik
Ruby code blocks are defined by curly braces {} and they can be used to group multiple lines of code that need to execute together. Code blocks can also contain method definitions, control structures, and iterations. They are often used with methods that accept a block as an argument.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers