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
9

Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *