nobu.nokada / softhome.net wrote:


> class String
>   def to_number
>     Integer(self) rescue Float(self) rescue self
>   end
> end


Elegance lies in the beauty of condensed truth :)

Thx,
Tobi



-- 
http://www.pinkjuice.com/