| Path: | lib/sym_tbl_gsub.rb |
| Last Update: | Mon Oct 09 16:59:22 +0200 2006 |
| Author: | Nicolas Pouillard <ertai@lrde.epita.fr>. |
| Copyright: | Copyright (c) 2005 Nicolas Pouillard. All rights reserved. |
| License: | Ruby License |
| Revision: | $Id: /w/fey/ruby_ex/trunk/lib/sym_tbl_gsub.rb 24385 2006-07-09T17:01:58.280788Z ertai $ |
# File lib/sym_tbl_gsub.rb, line 234 def add_matching (pattern ) @pending_reject ||= [] if defined? @symtbl and @symtbl pattern = pattern.do_symtbl_gsub(@symtbl) else if pattern.to_s =~ /<<.*>>/ and not @pending_reject.include? pattern @pending_reject << pattern return end end add_matching_without_expand pattern end
# File lib/sym_tbl_gsub.rb, line 248 def symtbl_gsub! ( symtbl ) @pending_add += @pending_reject if defined? @pending_reject @pending_reject = [] @pending = ! @pending_add.empty? @symtbl = symtbl map! { |path| path.do_symtbl_gsub(symtbl) } @symtbl = nil self end