class Covered::Filter

Filters coverage before forwarding it to another output.

def accept?(path)

@returns [Boolean] Whether this filter and the wrapped output accept the path.
@parameter path [String] The source path.
Whether the given path is accepted by this filter and its output.
def accept?(path)
	match?(path) and super
end

def each(&block)

Other tags:
    Yield: - the path to the file, and the execution counts.
def each(&block)
	@output.each do |coverage|
		yield coverage if accept?(coverage.path)
	end
end

def mark(path, lineno, value)

@parameter value [Integer | Array(Integer)] The execution count or counts to add.
@parameter lineno [Integer] The starting line number.
@parameter path [String] The source path.
Mark coverage if the path is accepted by this filter.
def mark(path, lineno, value)
	@output.mark(path, lineno, value) if accept?(path)
end

def match?(path)

@returns [Boolean] Whether this filter matches the path.
@parameter path [String] The source path.
Whether the given path matches this filter.
def match?(path)
	true
end