lib/gimchi/patch_1.8.rb in gimchi-0.1.9 vs lib/gimchi/patch_1.8.rb in gimchi-0.2.0
- old
+ new
@@ -1,10 +1,10 @@
-$KCODE = 'U'
+if RUBY_VERSION =~ /^1\.8\./
+ $KCODE = 'U'
-module Gimchi
-class Korean
-private
- def str_length str
- str.scan(/./mu).length
- end
-end#Korean
-end#Gimchi
+ class Gimchi
+ private
+ def str_length str
+ str.scan(/./mu).length
+ end
+ end#Gimchi
+end