Home / Report Question

Q. Which method is used to check if all elements in a collection satisfy a condition in Ruby enumerators?
  • A. any?
  • B. all?
  • C. one?
  • D. any?

Correct Answer: B