M

Mr. Dubey • 97.30K Points
Coach

Q. How do you create a proc in Ruby?

  • (A) By using the create_proc function
  • (B) Using the Proc.new method or the -> (stabby lambda) syntax
  • (C) By invoking the proc keyword followed by parentheses ()
  • (D) By using the create_proc function
  • Correct Answer - Option(B)
  • Views: 86
  • 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.

Be the first to start discuss.


Question analytics