Vidyalelo
Ruby Programming · Q54

Advanced Topics in Ruby

Programming · Ruby Programming · question 54

Q54

What is the purpose of the public_send method in Ruby?

A.
It invokes a public method on an object, bypassing visibility restrictions
Answer
B.
It sends a message to the Ruby interpreter to execute a piece of code
C.
It checks if the object responds to the specified method
D.
It returns a Method object representing the specified method

Answer: Option A

Solution

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