Examveda

What is the purpose of the `public` keyword in Ruby?

A. Makes methods accessible from anywhere in the code

B. Restricts access to methods below it

C. Makes methods accessible from outside the class

D. None of the above

Answer: Option A


This Question Belongs to Ruby Programming >> Methods In Ruby

Join The Discussion

Related Questions on Methods in Ruby