M

Mr. Dubey • 97.30K Points
Coach

Q. What does the & operator do when used with a proc in Ruby?

  • (A) Invokes the proc with the given arguments
  • (B) Converts the proc into a lambda so it can be passed to a method that expects a lambda parameter
  • (C) Converts the proc into a block so it can be passed to a method that expects a block parameter
  • (D) Converts the proc into a method so it can be called directly
  • Correct Answer - Option(C)
  • Views: 144
  • Filed under category Ruby

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.


Question analytics