Adapters are glorified SimpleCov configuration procs that can be easily loaded using SimpleCov.start :rails and defined using
SimpleCov.adapters.define :foo do # SimpleCov configuration here, same as in SimpleCov.configure end
Define a SimpleCov adapter:
SimpleCov.adapters.define 'rails' do # Same as SimpleCov.configure do .. here end
# File lib/simplecov/adapters.rb, line 15 def define(name, &blk) name = name.to_sym raise "SimpleCov Adapter '#{name}' is already defined" unless self[name].nil? self[name] = blk end
Generated with the Darkfish Rdoc Generator 2.