Class: SimpleCov::GlobFilter
- Defined in:
- lib/simplecov/filter.rb,
sig/simplecov.rbs
Overview
Matches when the source file's project path matches the configured shell
glob. Used by cover, and by skip when callers want glob semantics
instead of StringFilter's substring match.
Instance Attribute Summary
Attributes inherited from Filter
Instance Method Summary collapse
Methods inherited from Filter
build_filter, class_for_argument, #initialize
Constructor Details
This class inherits a constructor from SimpleCov::Filter
Instance Method Details
#matches?(source_file) ⇒ Boolean
122 123 124 |
# File 'lib/simplecov/filter.rb', line 122 def matches?(source_file) File.fnmatch?(filter_argument, source_file.project_filename, File::FNM_PATHNAME | File::FNM_EXTGLOB) end |
#path_only? ⇒ Boolean
126 127 128 |
# File 'lib/simplecov/filter.rb', line 126 def path_only? true end |