Class: Covered::Filter

Inherits:
Wrapper show all
Defined in:
lib/covered/files.rb

Direct Known Subclasses

Only, Root, Skip

Instance Attribute Summary

Attributes inherited from Wrapper

#output

Instance Method Summary collapse

Methods inherited from Wrapper

#disable, #enable, #initialize, #to_h

Constructor Details

This class inherits a constructor from Covered::Wrapper

Instance Method Details

#accept?(path) ⇒ Boolean

Returns:

  • (Boolean)


93
94
95
# File 'lib/covered/files.rb', line 93

def accept?(path)
	true
end

#each(&block) ⇒ Object



101
102
103
104
105
# File 'lib/covered/files.rb', line 101

def each(&block)
	super do |coverage|
		yield coverage if accept?(coverage.path)
	end
end

#mark(path, *args) ⇒ Object



97
98
99
# File 'lib/covered/files.rb', line 97

def mark(path, *args)
	super if accept?(path)
end