Hello!

To sum the digits of an Integer I have got

class Integer
   def sum_digits()
     sum = 0
     n = self
     begin sum += n % 10; n /= 10 end while n > 0
     sum
   end
end


Is there a more Ruby Way to do this? The above method smells of Java, 
doesn't it?

Thanks, Marcus