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
Instance Method Details
#accept?(path) ⇒ Boolean
92
93
94
|
# File 'lib/covered/files.rb', line 92
def accept?(path)
true
end
|
#each(&block) ⇒ Object
100
101
102
103
104
105
106
107
108
|
# File 'lib/covered/files.rb', line 100
def each(&block)
super do |coverage|
if accept?(coverage.path)
yield coverage
else
puts "Skipping #{coverage.path} #{self.class}"
end
end
end
|
#mark(path, *args) ⇒ Object
96
97
98
|
# File 'lib/covered/files.rb', line 96
def mark(path, *args)
super if accept?(path)
end
|