Ruby - Modules and Mixins
What is the correct way to define a method inside a Ruby module so it can be called directly on the module?
self.method_name inside the module.self.method_name inside the module uses self.method_name, which is correct. Other options either omit self or use invalid syntax.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions