From: JamesBritt Date: 2002-09-19T15:24:10+09:00 Subject: RE: If Statement Help > Hi All > > Im currently learning ruby and its going well. I have been looking at a > number of "guru" libraries such as DBI, CGI etc to try and learn > by example. > I have noticed that a number of if statements have the following > syntax eg: > > if File.name? > > Can someone please explain the ? usage as I have searched all over the > Pragmatic Programmer pages with no answer. Methods that end with a question mark should return a Boolean value. This is a coding convention, not a parser-enforced syntax rule. James > > Thanks