C
Carl Youngblood
Is there a built-in way to test the contents of a string to try and find
a logical type of data that it might contain? For example, say a string
contains "4.56". It would be nice to have
"4.56".inferred_type => Float
"23".inferred_type => Fixnum
"george".inferred_type => String
Thanks,
Carl Youngblood
a logical type of data that it might contain? For example, say a string
contains "4.56". It would be nice to have
"4.56".inferred_type => Float
"23".inferred_type => Fixnum
"george".inferred_type => String
Thanks,
Carl Youngblood