Vidyalelo
Ruby Programming · Q12

Advanced Topics in Ruby

Programming · Ruby Programming · question 12

Q12

What is the purpose of the method_defined? method in Ruby's Module class?

A.
Checking if a method is defined within an object
B.
Checking if a module is defined within a method
C.
Checking if a method is defined within a class
D.
Checking if a method is defined within a module
Answer

Answer: Option D

Solution

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