lib/re_expand.rb in re_expand-0.0.3 vs lib/re_expand.rb in re_expand-0.0.4
- old
+ new
@@ -1,11 +1,11 @@
# -*- coding: utf-8 -*-
$:.unshift(File.dirname(__FILE__)) unless
$:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__)))
module ReExpand
- VERSION = '0.0.3'
+ VERSION = '0.0.4'
end
require 'Generator'
require 'Node'
require 'Asearch'
@@ -37,10 +37,10 @@
r[0]
}
end
if block_given? then
- matched.collect { |m|
+ matched.each { |m|
yield m[0], m[1].split(/\t/)
}
else
strings
end