From: "ara.t.howard" Date: 2008-08-06T14:16:52+09:00 Subject: Re: is there a way to AutoParse a string to another type - e.g. if a Date format then date, else if integer than Integer etc ????? On Aug 5, 2008, at 10:53 PM, Greg Hauptmann wrote: > Does this exist somewhere in Ruby already? Or do I have to write > myself? require 'date' value = Date.parse(string) rescue Integer(string) a @ http://codeforpeople.com/ -- we can deny everything, except that we have the possibility of being better. simply reflect on that. h.h. the 14th dalai lama