Class: PathList
Instance Attribute Summary collapse
Instance Method Summary
collapse
dup_based_method, #exclude_with_regex_list!, #grep_with_negative_regex_list!, #grep_with_regex_list!, #sort_with_regex_list!
Instance Attribute Details
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_expand ⇒ Object
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
|