Class: PathList

Inherits:
Object show all
Includes:
RegexList::PathListExtension
Defined in:
lib/regex_list.rb,
lib/sym_tbl_gsub.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from RegexList::PathListExtension

dup_based_method, #exclude_with_regex_list!, #grep_with_negative_regex_list!, #grep_with_regex_list!, #sort_with_regex_list!

Instance Attribute Details

#symtblObject

Returns the value of attribute symtbl.



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

def symtbl
  @symtbl
end

Instance Method Details

#add_matching_without_expandObject



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

alias_method :add_matching_without_expand, :add_matching

#symtbl_gsub(symtbl) ⇒ Object



169
170
171
# File 'lib/sym_tbl_gsub.rb', line 169

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

#symtbl_gsub!(symtbl) ⇒ Object



159
160
161
162
163
164
165
166
167
# File 'lib/sym_tbl_gsub.rb', line 159

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