Examveda

What is the purpose of the include keyword in Ruby?

A. To instantiate an object of a class

B. To define a new class that inherits from an existing class

C. To include a file in the current Ruby script

D. To mix in module methods as instance methods of a class

Answer: Option D


This Question Belongs to Ruby Programming >> Advanced Topics In Ruby

Join The Discussion

Related Questions on Advanced Topics in Ruby