Examveda

What is the significance of using the include? method in Ruby's Enumerable module?

A. It checks if a collection includes a specific element

B. It includes a module into the current class

C. It iterates over each element of a collection

D. It creates a new collection by filtering elements based on a given condition

Answer: Option A


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

Join The Discussion

Related Questions on Advanced Topics in Ruby