Examveda

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


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

Join The Discussion

Related Questions on Advanced Topics in Ruby