Class: PathList

Inherits:
Object show all
Defined in:
lib/sym_tbl_gsub.rb

Instance Method Summary collapse

Instance Method Details

#add_matching_without_expandObject



143
# File 'lib/sym_tbl_gsub.rb', line 143

alias add_matching_without_expand add_matching

#symtbl_gsub(symtbl) ⇒ Object



157
158
159
# File 'lib/sym_tbl_gsub.rb', line 157

def symtbl_gsub ( symtbl )
  dup.symtbl_gsub!(symtbl)
end

#symtbl_gsub!(symtbl) ⇒ Object



150
151
152
153
154
155
# File 'lib/sym_tbl_gsub.rb', line 150

def symtbl_gsub! ( symtbl )
  @expand = lambda { |pattern| pattern.do_symtbl_gsub(symtbl) }
  map! { |path| path.do_symtbl_gsub(symtbl) }
  @expand = nil
  self
end