Lines Matching refs:fn
116 filenames.each do |fn|
117 if fn.respond_to? :to_ary
118 include(*fn.to_ary)
120 @pending_add << fn
204 @pending_add.each do |fn| resolve_add(fn) end
211 def resolve_add(fn)
212 case fn
214 add_matching(fn)
216 self << fn
222 reject! { |fn| exclude?(fn) }
234 inject(FileList.new) { |res, fn| res << fn.sub(pat,rep) }
245 inject(FileList.new) { |res, fn| res << fn.gsub(pat,rep) }
250 each_with_index { |fn, i| self[i] = fn.sub(pat,rep) }
256 each_with_index { |fn, i| self[i] = fn.gsub(pat,rep) }
264 collect { |fn| fn.pathmap(spec) }
276 collect { |fn| fn.ext(newext) }
287 each do |fn|
289 open(fn, "r", *options) do |inf|
296 yield fn, count, line
298 puts "#{fn}:#{count}:#{line}"
304 $stderr.puts "Error while processing '#{fn}': #{ex}"
313 select { |fn| File.exist?(fn) }
320 @items = @items.select { |fn| File.exist?(fn) }
343 FileList.glob(pattern).each do |fn|
344 self << fn unless exclude?(fn)
350 def exclude?(fn)
354 fn =~ pat
356 File.fnmatch?(pat, fn, File::FNM_PATHNAME)
358 fn == pat
361 @exclude_procs.any? { |p| p.call(fn) }
371 proc { |fn| fn =~ /(^|[\/\\])core$/ && ! File.directory?(fn) }