Q23
In Ruby, which method is used to check if an object responds to a certain method?
A.
method_defined?
B.
respond_to?
AnswerC.
has_method?
D.
check_method
Answer: Option B
Solution
Answer: Option B
No explanation is given for this question Let's Discuss on Board