Vidyalelo
Ruby Programming · Q18

Blocks and Procs in Ruby

Programming · Ruby Programming · question 18

Q18

Which method is used to convert a block into a proc in Ruby?

A.
Proc.new
B.
&
C.
None of the above
D.
.to_proc
Answer

Answer: Option D

Solution

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