Method: BenchmarkSpec.load_files_recursively

Defined in:
lib/benchmark_spec.rb

.load_files_recursively(path) ⇒ Object



45
46
47
48
49
50
51
52
53
# File 'lib/benchmark_spec.rb', line 45

def load_files_recursively(path)
  Dir[path].each do |file|
    if File.directory? file
      load_files_recursively file + "/*"
    else
      require file if File.basename(file).match /benchmark\.rb$/
    end
  end
end