Methods In Ruby - Study Mode
[#11] What does the `public` keyword do in Ruby?
Correct Answer
(A) Makes methods accessible from anywhere in the code
[#12] In Ruby, what is the purpose of the `include` keyword in a class definition?
Correct Answer
(A) To include a module
[#13] What does the `protected` keyword do in Ruby?
Correct Answer
(B) Restricts access to methods below it
[#14] In Ruby, what does the `singleton_method_defined?` method do?
Correct Answer
(C) Checks if a singleton method is defined
[#15] What is the purpose of the `public` keyword in Ruby?
Correct Answer
(A) Makes methods accessible from anywhere in the code