lib/re_expand.rb in re_expand-0.0.1 vs lib/re_expand.rb in re_expand-0.0.2

- old
+ new

@@ -1,21 +1,21 @@ # -*- coding: utf-8 -*- $:.unshift(File.dirname(__FILE__)) unless $:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__))) module ReExpand - VERSION = '0.0.1' + VERSION = '0.0.2' end require 'Generator' require 'Node' require 'Asearch' require 'Scanner' class String # ExpandHelp用のライブラリを利用 def expand(filterpat=' ') - g = Generator.new + g = ReExpand::Generator.new g.add(self,'') strings = [] if filterpat.class == String then matched = g.generate(filterpat) res = matched[0].length > 0 ? matched[0] : matched[1].length > 0 ? matched[1] : matched[2]