Skip to content

Instantly share code, notes, and snippets.

@vinbarnes
Created July 23, 2009 18:11
Show Gist options
  • Save vinbarnes/153335 to your computer and use it in GitHub Desktop.
Save vinbarnes/153335 to your computer and use it in GitHub Desktop.
Autotest.send(:alias_method, :real_find_files, :find_files)
Autotest.send(:define_method, :find_files) do |*args|
real_find_files.reject do |k, v|
if (ENV['AUTOLIMIT'] and !ENV['AUTOLIMIT'].empty?)
!Regexp.new(ENV['AUTOLIMIT']).match(k)
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment