> In these cases, I just double convert i.e.
>
> irb(main):016:0> buffer = 'fred'
> => "fred"
> irb(main):017:0> buffer.to_i.to_s == buffer
> => false

 Have to say that that's very cleaver. Very good solution.

-- 
Posted via http://www.ruby-forum.com/.