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