module SimpleCov::Configuration
def project_name(new_name=nil)
the SimpleCov.root is this.
Returns the project name - currently assuming the last dirname in
def project_name(new_name=nil) return @project_name if @project_name and new_name.nil? @project_name = new_name if new_name.kind_of?(String) @project_name ||= File.basename(root.split('/').last).capitalize.gsub('_', ' ') end