From: matt@... (matt neuburg) Date: 2006-11-19T01:55:06+09:00 Subject: Re: ruby equivalent PHP function is_numeric? Michael Fellinger wrote: > class String > def to_numeric > Integer(self) rescue Float(self) rescue nil > end > end Where can I find documentation on the syntax of "rescue" that makes this work? Thx - m. -- matt neuburg, phd = matt@tidbits.com, http://www.tidbits.com/matt/ Tiger - http://www.takecontrolbooks.com/tiger-customizing.html AppleScript - http://www.amazon.com/gp/product/0596102119 Read TidBITS! It's free and smart. http://www.tidbits.com