# File lib/autotest.rb, line 139 def initialize @files = Hash.new Time.at(0) @files_to_test = Hash.new { |h,k| h[k] = [] } @exceptions = false @libs = %w[. lib test].join(File::PATH_SEPARATOR) @output = $stderr @sleep = 1 @unit_diff = "unit_diff -u" @test_mappings = { /^lib\/.*\.rb$/ => proc { |filename, _| files_matching %r%^test/.*#{File.basename(filename).gsub '_', '_?'}$% }, /^test\/test_.*rb$/ => proc { |filename, _| filename } } hook :initialize end