Class: Covered::Filter
Instance Attribute Summary
Attributes inherited from Wrapper
#output
Instance Method Summary
collapse
Methods inherited from Wrapper
#disable, #enable, #expand_path, #initialize, #relative_path, #to_h
Methods inherited from Base
#disable, #enable, #expand_path, #relative_path
Instance Method Details
#accept?(path) ⇒ Boolean
101
102
103
|
# File 'lib/covered/wrapper.rb', line 101
def accept?(path)
match?(path) and super
end
|
#each {|Coverage| ... } ⇒ Object
95
96
97
98
99
|
# File 'lib/covered/wrapper.rb', line 95
def each(&block)
@output.each do |coverage|
yield coverage if accept?(coverage.path)
end
end
|
#mark(path, lineno, value) ⇒ Object
90
91
92
|
# File 'lib/covered/wrapper.rb', line 90
def mark(path, lineno, value)
@output.mark(path, lineno, value) if accept?(path)
end
|
#match?(path) ⇒ Boolean
105
106
107
|
# File 'lib/covered/wrapper.rb', line 105
def match?(path)
true
end
|