Commit 6936fe8
committed
Centralize generator setup
Currently we need to call `setup` in individual generation methods,
despite having already called it in `RDoc#generate`.
This is because `setup` is lazily called when we run `ri`'s server
mode.
By calling `setup` eagerly in `Servlet#generator_for`, we can
avoid the repeated calls to `setup` in individual generation methods.1 parent 152035b commit 6936fe8
2 files changed
+1
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
301 | 301 | | |
302 | 302 | | |
303 | 303 | | |
304 | | - | |
305 | | - | |
306 | 304 | | |
307 | 305 | | |
308 | 306 | | |
| |||
338 | 336 | | |
339 | 337 | | |
340 | 338 | | |
341 | | - | |
342 | | - | |
343 | 339 | | |
344 | 340 | | |
345 | 341 | | |
| |||
372 | 368 | | |
373 | 369 | | |
374 | 370 | | |
375 | | - | |
376 | | - | |
377 | 371 | | |
378 | 372 | | |
379 | 373 | | |
| |||
399 | 393 | | |
400 | 394 | | |
401 | 395 | | |
402 | | - | |
403 | | - | |
404 | 396 | | |
405 | 397 | | |
406 | 398 | | |
| |||
468 | 460 | | |
469 | 461 | | |
470 | 462 | | |
471 | | - | |
472 | | - | |
473 | 463 | | |
474 | 464 | | |
475 | 465 | | |
| |||
497 | 487 | | |
498 | 488 | | |
499 | 489 | | |
500 | | - | |
501 | | - | |
502 | 490 | | |
503 | 491 | | |
504 | 492 | | |
| |||
530 | 518 | | |
531 | 519 | | |
532 | 520 | | |
533 | | - | |
534 | | - | |
535 | 521 | | |
536 | 522 | | |
537 | 523 | | |
| |||
557 | 543 | | |
558 | 544 | | |
559 | 545 | | |
560 | | - | |
561 | | - | |
562 | 546 | | |
563 | 547 | | |
564 | 548 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
247 | 247 | | |
248 | 248 | | |
249 | 249 | | |
| 250 | + | |
250 | 251 | | |
251 | 252 | | |
252 | 253 | | |
| |||
0 commit comments