| Class | String |
| In: |
lib/html_encode.rb
lib/r_path.rb lib/sym_tbl_gsub.rb lib/text.rb |
| Parent: | Object |
# File lib/sym_tbl_gsub.rb, line 196 def symtbl_gsub ( symtbl ) return nil unless self =~ /<<.*>>/ dup.symtbl_gsub! symtbl end
# File lib/sym_tbl_gsub.rb, line 203 def symtbl_gsub! ( symtbl ) have_changed = nil while ( gsub!(/<<([^<>]*)>>/) do s = symtbl[$1] have_changed ||= s (s.nil?)? "<#{@@tag}<#$1>#{@@tag}>" : s.symtbl_to_s end ) do end gsub! @@tag, '' return nil if have_changed.nil? self end