Vidyalelo
Ruby Programming · Q23

Methods in Ruby

Programming · Ruby Programming · question 23

Q23

In Ruby, which method is used to check if an object responds to a certain method?

A.
method_defined?
B.
respond_to?
Answer
C.
has_method?
D.
check_method

Answer: Option B

Solution

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