# File lib/turn/configuration.rb, line 195 def reporter_class rpt_format = format || :pretty class_name = rpt_format.to_s.capitalize + "Reporter" path = "turn/reporters/#{rpt_format}_reporter" [File.expand_path('~'), Dir.pwd].each do |dir| file = File.join(dir, ".turn", "reporters", "#{rpt_format}_reporter.rb") path = file if File.exist?(file) end require path Turn.const_get(class_name) end