Q61
What is the primary difference between module_function and extend self in Ruby?
A.
module_function makes the specified methods accessible as module methods, while extend self makes them accessible as instance methods
AnswerB.
module_function makes the specified methods private, while extend self makes them public
C.
module_function creates a new module, while extend self extends the current module
D.
module_function makes the specified methods singleton methods, while extend self makes them instance methods
Answer: Option A
Solution
Answer: Option A
No explanation is given for this question Let's Discuss on Board