commit 193d0477dd6978bfb91c02055b92cb989932d1d0
parent cc747dae57ba4b4387b002bec72c5c0b364a1a06
Author: Zeger-Jan van de Weg <mail@zjvandeweg.nl>
Date: Wed, 8 Apr 2015 19:52:41 +0200
#ascii_only? is always defined
Diffstat:
1 file changed, 0 insertions(+), 7 deletions(-)
diff --git a/lib/sup/util.rb b/lib/sup/util.rb
@@ -454,13 +454,6 @@ class String
out = out.fix_encoding! # this should now be an utf-8 string of ascii
# compat chars.
end
-
- unless method_defined? :ascii_only?
- def ascii_only?
- size.times { |i| return false if self[i] & 128 != 0 }
- return true
- end
- end
end
class Numeric