A Admin • 828.03K Points Coach Q. How do you define a block in Ruby? (A) By using the keyword block followed by square brackets [] (B) By using the keyword block followed by parentheses () (C) By defining a method with the keyword block (D) By enclosing code within curly braces {} Correct Answer - Option(D) Views: 10 Filed under category Ruby Hashtags: Share Manage Tags
Discusssion
Login to discuss.