Class: Dogfood::DSL::AuditRenderer
- Inherits:
-
Object
- Object
- Dogfood::DSL::AuditRenderer
- Defined in:
- lib/dogfood/dsl/audit_renderer.rb
Overview
Produces a five-section audit report for --explain:
A. Stage/decision tree (delegates to ExplainRenderer)
B. Branch weight table
C. Path enumeration (full step sequences per path)
D. Edge-case gap detection
E. Step resolution check
Constant Summary collapse
- MAX_PATHS =
50
Instance Method Summary collapse
-
#initialize(ast, pack: nil) ⇒ AuditRenderer
constructor
A new instance of AuditRenderer.
- #render ⇒ Object
Constructor Details
#initialize(ast, pack: nil) ⇒ AuditRenderer
Returns a new instance of AuditRenderer.
14 15 16 17 |
# File 'lib/dogfood/dsl/audit_renderer.rb', line 14 def initialize(ast, pack: nil) @ast = ast @pack = pack end |
Instance Method Details
#render ⇒ Object
19 20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/dogfood/dsl/audit_renderer.rb', line 19 def render lines = [] lines.concat(section_a) lines << "" lines.concat(section_b) lines << "" lines.concat(section_c) lines << "" lines.concat(section_d) lines << "" lines.concat(section_e) lines.join("\n") + "\n" end |