Vidyalelo
Ruby Programming · Q28

Advanced Topics in Ruby

Programming · Ruby Programming · question 28

Q28

What is the purpose of the binding method in Ruby?

A.
To execute a block of code within the context of a specific object
B.
To capture the current execution context and create a binding object
Answer
C.
To generate a list of variables and their values within the current scope
D.
None of the above

Answer: Option B

Solution

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