What does the question mark at the end of a method name mean in Ruby?

Viewed 126995

What is the purpose of the question mark operator in Ruby?

Sometimes it appears like this:

assert !product.valid?

sometimes it's in an if construct.

9 Answers
Related