What is a "predicate method" in Ruby?
A. A method that returns the result of a comparison between two objects
B. A method that takes a block as an argument
C. A method that raises an exception when called with invalid arguments
D. A method that returns a boolean value indicating a condition
Answer: Option D

Join The Discussion