Commit f230f2e
committed
Fix Ruby 4.0 warning: default before_template/after_template now accept a block
The call site in SGML#call passes a block to both methods via `&block`,
but the default no-op implementations had no block parameter. Ruby 4.0
warns about this ("block passed to method may be ignored"). Adding `(&)`
to both signatures silently accepts the block without using it.1 parent ade4222 commit f230f2e
2 files changed
Lines changed: 7 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
326 | 326 | | |
327 | 327 | | |
328 | 328 | | |
329 | | - | |
| 329 | + | |
330 | 330 | | |
331 | 331 | | |
332 | 332 | | |
333 | | - | |
| 333 | + | |
334 | 334 | | |
335 | 335 | | |
336 | 336 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
33 | 38 | | |
0 commit comments