This repository was archived by the owner on Dec 30, 2025. It is now read-only.
Commit aa3026e
committed
Simplify report capture - use closure to access status_report
Just capture status_report as a local variable before at_exit block.
Ruby closures allow the at_exit block to access the outer scope variable.
Much simpler than module variables or separate classes.1 parent 5c00f2b commit aa3026e
1 file changed
Lines changed: 6 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
13 | 16 | | |
14 | 17 | | |
15 | 18 | | |
16 | 19 | | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
21 | 23 | | |
22 | 24 | | |
23 | 25 | | |
| |||
0 commit comments