class Utils::Grepper
def search
def search suffixes = @args['I'].ask_and_send(:split, /[\s,]+/).to_a find(*(@roots + [ { :suffix => suffixes } ])) do |filename| match(filename) end if @args['L'] or @args['e'] @paths = @paths.sort_by do |path| pair = path.split(':') pair[1] = pair[1].to_i pair end else @paths.sort! end self end