lib/encx.rb in encx-0.1.3 vs lib/encx.rb in encx-0.1.4

- old
+ new

@@ -44,14 +44,13 @@ end hs end def compare(l , hs) - puts "# Call compare" + # puts "# Call compare" ret2 = @encoding_ary.find{ |x| begin -# p hs[x] ret = hs[x].match(l) if ret ret = true @re = hs[x] @last_match = Regexp.last_match[1] @@ -99,25 +98,24 @@ if enc ret , val = conv_env_sub( d , enc ) else ret2 = @encoding_ary.find{ |enc| ret , val = conv_env_sub( d , enc ) - ret } end val end - + def register_error( target , item ) @error_target_item_hs[target] ||= [] @error_target_item_hs[target] << item end - + def print_error_register_item @error_target_item_hs.each do |k,v| puts "##{k}" - v.each do |item| + v.each do |item| puts "==#{item}" end end end end