From: Aredridel Date: 2006-10-06T04:21:13+09:00 Subject: Re: question mark at end of method name --=-N1Q3dS1A7XMcBUw0tfr3 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Fri, 2006-10-06 at 04:15 +0900, py wrote: > what does the question mark at the end of a method name represent? >=20 > for example: >=20 > x =3D "something" > break if x.empty? >=20 > i've seen what ! does....what is ? =20 It's just a name. What you do with it is up to you -- Booleanish methods often read well with a ? at the end, though there's nothing specific that says it has to be true or false -- could be nil or value, or whatever else you want to do. It could invoke rm -rf /, even, though I'd suggest ! for that! Aria --=-N1Q3dS1A7XMcBUw0tfr3 Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (GNU/Linux) iD8DBQBFJVsotP09exA3hooRAuAeAJ9iUwl9x3mtU0/Nt3MAyOv6tGz/SgCfae6i iNXoarq5mt0j6A2ct49zkAk= =ZMcu -----END PGP SIGNATURE----- --=-N1Q3dS1A7XMcBUw0tfr3--