Asked • 05/22/19

Why are exclamation marks used in Ruby methods?

In Ruby some methods have a question mark (`?`) that ask a question like `include?` that ask if the object in question is included, this then returns a true/false.But why do some methods have exclamation marks (`!`) where others don't?What does it mean?

1 Expert Answer

By:

Josh R. answered • 01/18/21

Tutor
5 (3)

Full-Stack Ruby Developer

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.