Class: TraceViz::Collectors::Filters::BaseIncludeFilter
- Inherits:
-
BaseClassFilter
- Object
- BaseFilter
- BaseClassFilter
- TraceViz::Collectors::Filters::BaseIncludeFilter
- Defined in:
- lib/trace_viz/collectors/filters/base_include_filter.rb
Direct Known Subclasses
Instance Method Summary collapse
Methods inherited from BaseClassFilter
Methods included from Helpers::ConfigHelper
#config, #fetch_general_config
Constructor Details
This class inherits a constructor from TraceViz::Collectors::Filters::BaseClassFilter
Instance Method Details
#apply?(trace_data) ⇒ Boolean
9 10 11 12 |
# File 'lib/trace_viz/collectors/filters/base_include_filter.rb', line 9 def apply?(trace_data) klass_name = normalize_class_name(trace_data.klass) classes_and_modules.any? { |allowed| matches_hierarchy?(klass_name, allowed) } end |