From: Paul Lutus Date: 2006-10-06T04:20:22+09:00 Subject: Re: question mark at end of method name py wrote: > what does the question mark at the end of a method name represent? > > for example: > > x = "something" > break if x.empty? > > i've seen what ! does....what is ? .empty? means "is it empty?". It tries to suggest that a question is being asked. It's unfortunate that the "!" syntax, which seems similar, actually means "apply the result to the present object." -- Paul Lutus http://www.arachnoid.com