commit 0c41879f4ea15210f74abea0344a05f8172a70bc
parent 6c90cdbb2c32be26662e2214a236494e4e629053
Author: wmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Date: Sat, 8 Dec 2007 22:15:30 +0000
remove num_digits
git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@749 5c8cc53c-5e98-4d25-b20a-d8db53a31250
Diffstat:
1 file changed, 0 insertions(+), 5 deletions(-)
diff --git a/lib/sup/util.rb b/lib/sup/util.rb
@@ -297,11 +297,6 @@ class Numeric
end
class Fixnum
- def num_digits base=10
- return 1 if self == 0
- 1 + (Math.log(self) / Math.log(10)).floor
- end
-
def to_character
if self < 128 && self >= 0
chr