Is there a way to AutoParse a string to another type - e.g. if a Date
then date, else if integer than Integer etc
I’m wanting to pass search parameters via a URL, however since
the URL will be a string it would be good to automatically convert a
to the most likely variable type. In particular differentiating between
Integer and a Date.
Does this exist somewhere in Ruby already? Or do I have to write
Thanks in advance