Class: Trace2::Runner
- Inherits:
-
Object
- Object
- Trace2::Runner
- Defined in:
- lib/trace2/runner.rb
Overview
Base class for trace2’s executable
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(options) ⇒ Runner
constructor
A new instance of Runner.
- #run ⇒ Object
Constructor Details
#initialize(options) ⇒ Runner
Returns a new instance of Runner.
13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/trace2/runner.rb', line 13 def initialize() @args = [:args] @executable = [:executable] @output_path = .fetch(:output_path) @executable_runner = [:executable_runner] || ExecutableRunner.new @render_graph_automatically = .fetch(:automatic_render, false) @graph_format = [:graph_format] @filter_path = [:filter_path] @dot_wrapper = .fetch(:dot_wrapper, DotWrapper.new) build_class_lister() end |
Class Method Details
Instance Method Details
#run ⇒ Object
25 26 27 28 29 |
# File 'lib/trace2/runner.rb', line 25 def run at_exit { end_class_listing } class_lister.enable executable_runner.run(executable, args) end |