Re: question mark at end of method name

From: py [mailto:[email protected]]

what does the question mark at the end of a method name represent?
i’ve seen what ! does…what is ?

It is a convention that indicates that the method is likely to return a
boolean value.

! is a convention that indicates that the method is ‘dangerous’,
possibly modifying the receiving instance or doing other drastic things.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs