From: "Damián M. González" Date: 2012-12-28T22:01:20+09:00 Subject: Re: numeric? > The more I think about it the more I do believe it is responsibility > of the "driver" (i.e. the bit that fetches the data) to return _proper > data_. In this case it would mean: do not return numbers as strings. > If values are invalid return a special value for that; this value > could be nil or one or more symbols depending on how many states need > to be represented. > > The using code should expect data properly typed so it can do its > business. Yes that ensure a proper work, but he says that at any time can enter a new antenna, and he wants to quickly put it working, so what we know is that all the null values are returned as strings. Perhaps just the null values are always returned as strings, the others values meaby are returned as Fixnums, so he wants to handle strings. -- Posted via http://www.ruby-forum.com/.