Examveda

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

A. method_defined?

B. respond_to?

C. has_method?

D. check_method

Answer: Option B


This Question Belongs to Ruby Programming >> Methods In Ruby

Join The Discussion

Related Questions on Methods in Ruby