Intermediate
Ruby
Q46 / 100
What does "method_missing" allow a class to do?
Correct! Well done.
Incorrect.
The correct answer is B) Intercept calls to undefined methods and handle them dynamically, e.g. for dynamic proxies or DSLs
B
Correct Answer
Intercept calls to undefined methods and handle them dynamically, e.g. for dynamic proxies or DSLs
Explanation
method_missing is invoked when a method that doesn't exist is called on an object, allowing dynamic handling of arbitrary method calls.
Progress
46/100