Vidyalelo
Ruby Programming · Q22

Blocks and Procs in Ruby

Programming · Ruby Programming · question 22

Q22

What is the purpose of the call method in Ruby procs and lambdas?

A.
To return the value of the proc or lambda
B.
To execute the code contained within the proc or lambda
Answer
C.
Both A and B
D.
None of the above

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board