Examveda

What is the purpose of the method_missing method in Ruby's BasicObject class?

A. It is called when a method is defined on a class object that already exists

B. It is called when a method is called on a class object that does not exist

C. It is called when a method is defined on an object that already exists

D. It is called when a method is called on an object that does not respond to the method

Answer: Option D


This Question Belongs to Ruby Programming >> Advanced Topics In Ruby

Join The Discussion

Related Questions on Advanced Topics in Ruby