Class: Trace2::ReportingToolsFactory
- Inherits:
-
Object
- Object
- Trace2::ReportingToolsFactory
- Defined in:
- lib/trace2/reporting_tools_factory.rb
Overview
Builds a ClassLister and GraphGenerator instance depending on the type that is passed.
Instance Method Summary collapse
- #build(filter, type: :native) ⇒ Object
-
#initialize(class_lister: ClassLister) ⇒ ReportingToolsFactory
constructor
A new instance of ReportingToolsFactory.
Constructor Details
#initialize(class_lister: ClassLister) ⇒ ReportingToolsFactory
Returns a new instance of ReportingToolsFactory.
7 8 9 |
# File 'lib/trace2/reporting_tools_factory.rb', line 7 def initialize(class_lister: ClassLister) @class_lister = class_lister end |
Instance Method Details
#build(filter, type: :native) ⇒ Object
11 12 13 14 15 16 17 |
# File 'lib/trace2/reporting_tools_factory.rb', line 11 def build(filter, type: :native) @type = type { class_lister: build_class_lister(filter), graph_generator: [:graph_generator] } end |