commit 088be9686241e0a95287d77dd151f89f612f1189
parent 0b2c6b76e95fd89a839ffe40846da5be21c3fff2
Author: Zeger-Jan van de Weg <mail@zjvandeweg.nl>
Date: Wed, 8 Apr 2015 19:39:43 +0200
Use Range implementation is equal, and also works on other Numerics
Diffstat:
1 file changed, 0 insertions(+), 7 deletions(-)
diff --git a/lib/sup/util.rb b/lib/sup/util.rb
@@ -161,13 +161,6 @@ module RMail
end
end
-class Range
- ## only valid for integer ranges (unless I guess it's exclusive)
- def size
- last - first + (exclude_end? ? 0 : 1)
- end
-end
-
class Module
def bool_reader *args
args.each { |sym| class_eval %{ def #{sym}?; @#{sym}; end } }