A

Admin • 802.91K Points
Coach

Q. Which method executes a block passed to a method in Ruby?

  • (A) yield
  • (B) execute
  • (C) run
  • (D) call
  • Correct Answer - Option(A)
  • Views: 3
  • Filed under category Ruby
  • Hashtags:

Explanation by: Admin
The yield keyword executes the block passed to a method.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.