class Covered::Skip
Excludes coverage for paths matching a pattern.
def initialize(output, pattern)
@parameter output [Covered::Base] The output to wrap.
Initialize a skip filter for the given pattern.
def initialize(output, pattern) super(output) @pattern = pattern end
def match? path
def match? path !@pattern.match?(path) end
def match? path
def match? path !(@pattern =~ path) end