Class: SimpleCov::BlockFilter
Instance Attribute Summary
Attributes inherited from Filter
Instance Method Summary collapse
-
#matches?(source_file) ⇒ Boolean
Returns true if the block given when initializing this filter with BlockFilter.new {|src_file| … } returns true for the given source file.
Methods inherited from Filter
build_filter, class_for_argument, #initialize, #passes?
Constructor Details
This class inherits a constructor from SimpleCov::Filter
Instance Method Details
#matches?(source_file) ⇒ Boolean
Returns true if the block given when initializing this filter with BlockFilter.new {|src_file| … } returns true for the given source file.
72 73 74 |
# File 'lib/simplecov/filter.rb', line 72 def matches?(source_file) filter_argument.call(source_file) end |