[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Re: question mark at end of method name

Gavin Kistner

10/5/2006 7:18:00 PM

From: py [mailto:codecraig@gmail.com]
> 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.