Vidyalelo
Ruby Programming · Q26

Blocks and Procs in Ruby

Programming · Ruby Programming · question 26

Q26

In Ruby, what is the purpose of the -> (stabby lambda) syntax?

A.
To define a proc
B.
To define a method
C.
To define a block of code
D.
To define a lambda function
Answer

Answer: Option D

Solution

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